mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 02:43:47 +08:00
ui: fix not showing networks if viewing right after startup
This commit is contained in:
@@ -335,7 +335,7 @@ class WifiUIMici(BigMultiOptionDialog):
|
||||
self._networks: dict[str, Network] = {}
|
||||
|
||||
# widget state
|
||||
self._last_interaction_time = rl.get_time()
|
||||
self._last_interaction_time = -float('inf')
|
||||
self._restore_selection = False
|
||||
|
||||
self._wifi_manager.add_callbacks(
|
||||
@@ -350,6 +350,7 @@ class WifiUIMici(BigMultiOptionDialog):
|
||||
# Call super to prepare scroller; selection scroll is handled dynamically
|
||||
super().show_event()
|
||||
self._wifi_manager.set_active(True)
|
||||
self._last_interaction_time = -float('inf')
|
||||
|
||||
def hide_event(self):
|
||||
super().hide_event()
|
||||
|
||||
Reference in New Issue
Block a user