WifiUi: fix up wrong password dialog (#37195)

* debug why so slow

* forget after

* i'm not sure why this is a thing

* better forget connecting reset

* ????

* has lag

* fix

* clean up

* should be fine
This commit is contained in:
Shane Smiskol
2026-02-12 20:48:34 -08:00
committed by GitHub
parent 132f10365a
commit 2e21deeae8
3 changed files with 17 additions and 10 deletions
@@ -445,14 +445,21 @@ class WifiUIMici(BigMultiOptionDialog):
hint = "wrong password..." if incorrect_password else "enter password..."
dlg = BigInputDialog(hint, "", minimum_length=8,
confirm_callback=lambda _password: self._connect_with_password(ssid, _password))
# go back to the manage network page
gui_app.set_modal_overlay(dlg, self._open_network_manage_page)
def on_close(result=None):
gui_app.set_modal_overlay_tick(None)
self._open_network_manage_page(result)
# Process wifi callbacks while the keyboard is shown so forgotten clears connecting state
gui_app.set_modal_overlay_tick(self._wifi_manager.process_callbacks)
gui_app.set_modal_overlay(dlg, on_close)
def _on_activated(self):
self._connecting = None
def _on_forgotten(self):
self._connecting = None
def _on_forgotten(self, ssid):
if self._connecting == ssid:
self._connecting = None
def _on_disconnected(self):
self._connecting = None