Skip to content

Commit

Permalink
Merge pull request #487 from btcinsaneguy/hide-mnemonic-when-login-if…
Browse files Browse the repository at this point in the history
…-hide-mnemonic-setting-is-true

Hide mnemonic when wallet loading if the Hide mnemonic setting is True
  • Loading branch information
odudex authored Dec 8, 2024
2 parents c201ff8 + ace23df commit 5c0db1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/krux/pages/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,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()
Expand Down

0 comments on commit 5c0db1c

Please sign in to comment.