From cddc3b9e8f69f28a23e165c0c138c8880691ac9b Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 11 Feb 2026 15:25:53 -0800 Subject: [PATCH] Reduce wifi dbus calls pt. 3 (#37172) * fewer calls to set metered * print * hell yeah * Revert "hell yeah" This reverts commit 0e0786bc204821329febc62a1b8dfd870e9aeb6e. * Revert "print" This reverts commit e9c7550496e9835888cb71c7dd622cbfb4624fbf. --- system/ui/lib/wifi_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/ui/lib/wifi_manager.py b/system/ui/lib/wifi_manager.py index 9d0658033..8cc99c620 100644 --- a/system/ui/lib/wifi_manager.py +++ b/system/ui/lib/wifi_manager.py @@ -555,10 +555,10 @@ class WifiManager: def worker(): for active_conn in self._get_active_connections(): conn_addr = DBusAddress(active_conn, bus_name=NM, interface=NM_ACTIVE_CONNECTION_IFACE) - conn_type = self._router_main.send_and_get_reply(Properties(conn_addr).get('Type')).body[0][1] + props = self._router_main.send_and_get_reply(Properties(conn_addr).get_all()).body[0] - if conn_type == '802-11-wireless' and not self.is_tethering_active(): - conn_path = self._router_main.send_and_get_reply(Properties(conn_addr).get('Connection')).body[0][1] + if props.get('Type', ('s', ''))[1] == '802-11-wireless' and not self.is_tethering_active(): + conn_path = props.get('Connection', ('o', '/'))[1] if conn_path == "/": continue