commit 3bf2641ce88c0af0341396353e4ce4283d205c3b parent 6339afee3bf6f02854308b2c84c356e8d546eb0b Author: ThomasV <thomasv@electrum.org> Date: Fri, 29 May 2020 08:59:14 +0200 kivy: remove test_seed and test_xpub. fixes #6146 and #5925 Diffstat:
M | electrum/gui/kivy/uix/dialogs/installwizard.py | | | 8 | ++------ |
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/electrum/gui/kivy/uix/dialogs/installwizard.py b/electrum/gui/kivy/uix/dialogs/installwizard.py @@ -30,10 +30,6 @@ if TYPE_CHECKING: # global Variables -is_test = (platform == "linux") -test_seed = "grape impose jazz bind spatial mind jelly tourist tank today holiday stomach" -test_seed = "time taxi field recycle tiny license olive virus report rare steel portion achieve" -test_xpub = "xpub661MyMwAqRbcEbvVtRRSjqxVnaWVUMewVzMiURAKyYratih4TtBpMypzzefmv8zUNebmNVzB3PojdC5sV2P9bDgMoo9B3SARw1MXUUfU1GL" Builder.load_string(''' #:import Window kivy.core.window.Window @@ -878,7 +874,7 @@ class RestoreSeedDialog(WizardDialog): from electrum.mnemonic import Mnemonic from electrum.old_mnemonic import wordlist as old_wordlist self.words = set(Mnemonic('en').wordlist).union(set(old_wordlist)) - self.ids.text_input_seed.text = test_seed if is_test else '' + self.ids.text_input_seed.text = '' self.message = _('Please type your seed phrase using the virtual keyboard.') self.title = _('Enter Seed') self.ext = False @@ -1055,7 +1051,7 @@ class AddXpubDialog(WizardDialog): self.app.scan_qr(on_complete) def do_paste(self): - self.ids.text_input.text = test_xpub if is_test else self.app._clipboard.paste() + self.ids.text_input.text = self.app._clipboard.paste() def do_clear(self): self.ids.text_input.text = ''