From ea5e2f7ce00e5ed380406579e05ce8af0d122e20 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Sat, 23 Aug 2025 02:14:49 -0700 Subject: [PATCH] sort by connected, strength, then name --- system/ui/lib/wifi_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/system/ui/lib/wifi_manager.py b/system/ui/lib/wifi_manager.py index 8dd2bb479b..afd2f947ed 100644 --- a/system/ui/lib/wifi_manager.py +++ b/system/ui/lib/wifi_manager.py @@ -399,6 +399,7 @@ class WifiManager: known_connections = self._get_connections() self._networks = [Network.from_dbus(ssid, ap_list, active_ap_path, self._connection_by_ssid(ssid, known_connections) is not None) for ssid, ap_list in aps.items()] + self._networks.sort(key=lambda n: (-n.is_connected, -n.strength, n.ssid.lower())) if self._networks_updated is not None: self._networks_updated(self._networks)