From 4a1101c032abc8c49ad6e67d998af09a3493e12c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 5 Mar 2026 02:54:24 -0800 Subject: [PATCH] mici setup: don't run network tick while not in network setup page --- system/ui/mici_setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/system/ui/mici_setup.py b/system/ui/mici_setup.py index cc65fc4bb..186f8e58e 100755 --- a/system/ui/mici_setup.py +++ b/system/ui/mici_setup.py @@ -401,6 +401,11 @@ class NetworkSetupPageBase(Scroller): self._pending_wifi_grow_animation = False def _nav_stack_tick(self): + # Only run tick when this page or its WiFi UI is on the stack + if gui_app.get_active_widget() is not self and not gui_app.widget_in_stack(self._wifi_ui): + self._wifi_manager.process_callbacks() + return + # Check network state before processing callbacks so forgetting flag # is still set on the frame the forgotten callback fires network_changing = self._wifi_ui.any_network_forgetting or self._wifi_manager.wifi_state.status == ConnectStatus.CONNECTING @@ -425,7 +430,7 @@ class NetworkSetupPageBase(Scroller): if elapsed > 0.5: self._pending_has_internet_scroll = False - def scroll_to_download(): + def scroll_to_end(): self._scroller._layout() end_offset = -(self._scroller.content_size - self._rect.width) remaining = self._scroller.scroll_panel.get_offset() - end_offset @@ -433,7 +438,7 @@ class NetworkSetupPageBase(Scroller): self._pending_continue_grow_animation = True # Animate WifiUi down first before scroll - gui_app.pop_widgets_to(self, scroll_to_download) + gui_app.pop_widgets_to(self, scroll_to_end) def set_custom_software(self, custom_software: bool): self._custom_software = custom_software