From ace23df7f8df4b29f7a4e0684eff5b4d03f47bee Mon Sep 17 00:00:00 2001 From: btcinsaneguy Date: Sun, 3 Nov 2024 14:44:04 +0900 Subject: [PATCH] Hide mnemonic when wallet loading if the Hide mnemonic setting is True --- src/krux/pages/login.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/krux/pages/login.py b/src/krux/pages/login.py index 7dd86e30..cd18f345 100644 --- a/src/krux/pages/login.py +++ b/src/krux/pages/login.py @@ -254,8 +254,10 @@ def _load_key_from_words(self, words, charset=LETTERS, new=False): from .mnemonic_editor import MnemonicEditor - mnemonic_editor = MnemonicEditor(self.ctx, mnemonic, new) - mnemonic = mnemonic_editor.edit() + # If the mnemonic is not hidden, show the mnemonic editor + if not Settings().security.hide_mnemonic: + mnemonic_editor = MnemonicEditor(self.ctx, mnemonic, new) + mnemonic = mnemonic_editor.edit() if mnemonic is None: return MENU_CONTINUE self.ctx.display.clear()