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({
|
Widget.Label({
|
||||||
class_name: "bar-network-label",
|
class_name: "bar-network-label",
|
||||||
label: network.wifi
|
label: Utils.merge(
|
||||||
.bind("ssid")
|
[network.bind("wifi"), options.bar.network.label.bind("value")],
|
||||||
.as((ssid) => (ssid ? ` ${ssid}` : " --").substring(0, 7)),
|
(wifi, showLabel) => {
|
||||||
|
if (showLabel) {
|
||||||
|
return wifi.ssid ? wifi.ssid.substring(0, 7) : " --";
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
},
|
||||||
|
),
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user