From cb29dce9d56dfed390c083c9b01a6e785edfbeca Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 24 Sep 2025 20:21:56 -0700 Subject: [PATCH] cool can do this --- system/ui/lib/wifi_manager.py | 10 +++++----- system/ui/widgets/network.py | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/system/ui/lib/wifi_manager.py b/system/ui/lib/wifi_manager.py index 4b778f4d37..dff3c61678 100644 --- a/system/ui/lib/wifi_manager.py +++ b/system/ui/lib/wifi_manager.py @@ -153,11 +153,11 @@ class WifiManager: atexit.register(self.stop) - def set_callbacks(self, need_auth: Callable[[str], None] | None = None, - activated: Callable[[], None] | None = None, - forgotten: Callable[[], None] | None = None, - networks_updated: Callable[[list[Network]], None] | None = None, - disconnected: Callable[[], None] | None = None): + def set_callbacks(self, need_auth: Callable[[str], None] | None, + activated: Callable[[], None] | None, + forgotten: Callable[[], None] | None, + networks_updated: Callable[[list[Network]], None] | None, + disconnected: Callable[[], None] | None): if need_auth is not None: self._need_auth.append(need_auth) if activated is not None: diff --git a/system/ui/widgets/network.py b/system/ui/widgets/network.py index 2a41b9ce55..b4af5c54d7 100644 --- a/system/ui/widgets/network.py +++ b/system/ui/widgets/network.py @@ -113,8 +113,7 @@ class AdvancedNetworkSettings(Widget): # action = - action = TextAction(text=lambda: self._wifi_manager.ipv4_address, color=rl.Color(170, 170, 170, 255)) - self._ip_address = ListItem(title="IP Address", action_item=action) + self._ip_address = text_item("IP Address", lambda: self._wifi_manager.ipv4_address) # enable tethering, tethering password, ip address, wifi network metered, hidden network