diff --git a/src/krux/pages/__init__.py b/src/krux/pages/__init__.py index e95638dc..932af286 100644 --- a/src/krux/pages/__init__.py +++ b/src/krux/pages/__init__.py @@ -454,7 +454,7 @@ def shutdown_menu_item(self, ctx): """Returns the Shutdown or Reboot Menu item""" label = t("Shutdown") if ctx.power_manager.has_battery() else t("Reboot") return (label, self.shutdown) - + def shutdown(self): """Handler for the 'shutdown' menu item""" if self.prompt(t("Are you sure?"), self.ctx.display.height() // 2): diff --git a/src/krux/pages/login.py b/src/krux/pages/login.py index 2e417d21..bd1805f3 100644 --- a/src/krux/pages/login.py +++ b/src/krux/pages/login.py @@ -257,7 +257,7 @@ def _confirm_mnemonic_numbers(self, mnemonic, charset): return False return True - + def _confirm_mnemonic_letters(self, mnemonic, new): from .mnemonic_editor import MnemonicEditor @@ -341,7 +341,7 @@ def _confirm_wallet_key(self, mnemonic): network, policy_type, script_type, account = ( wallet_settings.customize_wallet(key) ) - + return key def _load_key_from_words(self, words, charset=LETTERS, new=False):