electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 3d2736b014e1d6e3905380d616b705e338248c9c
parent d3b34263cdffb40f84e4bab0e7560bece1078f23
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 30 Nov 2020 14:37:32 +0100

add debug option to avoid retyping the seed in kivy

Diffstat:
Melectrum/base_wizard.py | 2+-
Melectrum/gui/kivy/uix/dialogs/installwizard.py | 1+
Melectrum/gui/qt/installwizard.py | 2+-
3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/electrum/base_wizard.py b/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) diff --git a/electrum/gui/kivy/uix/dialogs/installwizard.py b/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(),) diff --git a/electrum/gui/qt/installwizard.py b/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([