Skip to content

Commit

Permalink
Hide mnemonic when wallet loading if the Hide mnemonic setting is True
Browse files Browse the repository at this point in the history
  • Loading branch information
btcinsaneguy committed Dec 6, 2024
1 parent 79c4cbf commit ace23df
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 @@ -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()
Expand Down

0 comments on commit ace23df

Please sign in to comment.