mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-22 08:53:44 +08:00
ui: fix wrong param.get usage
This commit is contained in:
@@ -42,7 +42,7 @@ class SshKeyAction(ItemAction):
|
||||
self._refresh_state()
|
||||
|
||||
def _refresh_state(self):
|
||||
self._username = self._params.get("GithubUsername", "")
|
||||
self._username = self._params.get("GithubUsername")
|
||||
self._state = SshKeyActionState.REMOVE if self._params.get("GithubSshKeys") else SshKeyActionState.ADD
|
||||
|
||||
def _render(self, rect: rl.Rectangle) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user