mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user