fix(controlcenter): WiFi icon signal and accessor

- Change notify::wireless-enabled to notify::enabled
- Change .wireless_enabled to .enabled
This commit is contained in:
sankalp committed 2026-07-22 10:25:16 +05:45
1 parent 553b1e49d8
commit 970bebe84e
1 file changed
+2 -4
+2 -4
View File
@@ -903,16 +903,14 @@ class ModusControlCenter(AppletWindow):
self._signal_connections.append(
(
self.wifi_service,
self.wifi_service.connect(
"notify::wireless-enabled", self.update_wifi_icon
),
self.wifi_service.connect("notify::enabled", self.update_wifi_icon),
)
)
def update_wifi_icon(self, *_):
try:
if self.wifi_service and hasattr(self, "wifi_svg"):
is_enabled = self.wifi_service.wireless_enabled
is_enabled = self.wifi_service.enabled
self.wifi_svg.dynamic_file(
"applets/wifi.svg" if is_enabled else "applets/wifi-off.svg"
)