Fixed the bug that would cause the wifi name to not hide despite the option being selected.
This commit is contained in:
@@ -10,9 +10,15 @@ const Network = () => {
|
||||
}),
|
||||
Widget.Label({
|
||||
class_name: "bar-network-label",
|
||||
label: network.wifi
|
||||
.bind("ssid")
|
||||
.as((ssid) => (ssid ? ` ${ssid}` : " --").substring(0, 7)),
|
||||
label: Utils.merge(
|
||||
[network.bind("wifi"), options.bar.network.label.bind("value")],
|
||||
(wifi, showLabel) => {
|
||||
if (showLabel) {
|
||||
return wifi.ssid ? wifi.ssid.substring(0, 7) : " --";
|
||||
}
|
||||
return "";
|
||||
},
|
||||
),
|
||||
}),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user