Browse Source

add debug option to avoid retyping the seed in kivy

patch-4
ThomasV 4 years ago
parent
commit
3d2736b014
  1. 2
      electrum/base_wizard.py
  2. 1
      electrum/gui/kivy/uix/dialogs/installwizard.py
  3. 2
      electrum/gui/qt/installwizard.py

2
electrum/base_wizard.py

@ -721,7 +721,7 @@ class BaseWizard(Logger):
def confirm_seed(self, seed, passphrase):
f = lambda x: self.confirm_passphrase(seed, passphrase)
self.confirm_seed_dialog(run_next=f, test=lambda x: x==seed)
self.confirm_seed_dialog(run_next=f, seed=seed if self.config.get('debug_seed') else '', test=lambda x: x==seed)
def confirm_passphrase(self, seed, passphrase):
f = lambda x: self.run('create_keystore', seed, x)

1
electrum/gui/kivy/uix/dialogs/installwizard.py

@ -992,6 +992,7 @@ class ConfirmSeedDialog(RestoreSeedDialog):
def __init__(self, *args, **kwargs):
RestoreSeedDialog.__init__(self, *args, **kwargs)
self.ids.seed_dialog_header.ids.options_button.disabled = True
self.ids.text_input_seed.text = kwargs['seed']
def get_params(self, b):
return (self.get_text(),)

2
electrum/gui/qt/installwizard.py

@ -487,7 +487,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
return self.seed_input(title, message, test, options)
@wizard_dialog
def confirm_seed_dialog(self, run_next, test):
def confirm_seed_dialog(self, run_next, seed, test):
self.app.clipboard().clear()
title = _('Confirm Seed')
message = ' '.join([

Loading…
Cancel
Save