tadd debug option to avoid retyping the seed in kivy - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3d2736b014e1d6e3905380d616b705e338248c9c DIR parent d3b34263cdffb40f84e4bab0e7560bece1078f23 HTML 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: M electrum/base_wizard.py | 2 +- M electrum/gui/kivy/uix/dialogs/inst… | 1 + M electrum/gui/qt/installwizard.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/base_wizard.py b/electrum/base_wizard.py t@@ -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) DIR diff --git a/electrum/gui/kivy/uix/dialogs/installwizard.py b/electrum/gui/kivy/uix/dialogs/installwizard.py t@@ -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(),) DIR diff --git a/electrum/gui/qt/installwizard.py b/electrum/gui/qt/installwizard.py t@@ -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([