mici ui: clear ssh key (#37449)

* clear ssh

* rev
This commit is contained in:
Shane Smiskol
2026-02-27 00:56:41 -08:00
committed by GitHub
parent 0437998bce
commit fe39ffa55a
@@ -25,10 +25,14 @@ class DeveloperLayoutMici(NavWidget):
else:
dlg = BigDialog("", ssh_keys._error_message)
gui_app.push_widget(dlg)
else:
ui_state.params.remove("GithubUsername")
ui_state.params.remove("GithubSshKeys")
self._ssh_keys_btn.set_value("Not set")
def ssh_keys_callback():
github_username = ui_state.params.get("GithubUsername") or ""
dlg = BigInputDialog("enter GitHub username...", github_username, confirm_callback=github_username_callback)
dlg = BigInputDialog("enter GitHub username...", github_username, minimum_length=0, confirm_callback=github_username_callback)
if not system_time_valid():
dlg = BigDialog("Please connect to Wi-Fi to fetch your key", "")
gui_app.push_widget(dlg)