skip hidden APs, simplify _running

pull/36039/head
Shane Smiskol 5 days ago
parent 698cb66279
commit 3b7b2045bc
  1. 8
      system/ui/lib/wifi_manager_v2.py

@ -144,13 +144,10 @@ class WifiManager:
self._bus.close()
def _run(self):
while True:
while self._running:
if self._active:
self._update_networks()
if not self._running:
break
time.sleep(1)
def set_active(self, active: bool):
@ -290,6 +287,9 @@ class WifiManager:
try:
ap = AccessPoint.from_dbus(ap_props, ap_path, active_ap_path)
if ap.ssid == "":
continue
if ap.ssid not in aps:
aps[ap.ssid] = []

Loading…
Cancel
Save