From 566807343c7ae2a28707314318d5f28ab96f74df Mon Sep 17 00:00:00 2001 From: wilsonmeier Date: Sat, 30 Jun 2018 15:29:59 +0200 Subject: [PATCH] Revert "Removed hw wallet disable property" This reverts commit 18c0a70 until Equihash hardfork is done and everything can be tested --- lib/base_wizard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/base_wizard.py b/lib/base_wizard.py index 96901a092d21..8e43b5b044c5 100644 --- a/lib/base_wizard.py +++ b/lib/base_wizard.py @@ -53,6 +53,7 @@ def __init__(self, config, storage): self.keystores = [] self.is_kivy = config.get('gui') == 'kivy' self.seed_type = None + self.hw_wallet_enabled = False def run(self, *args): action = args[0] @@ -132,7 +133,7 @@ def choose_keystore(self): ('restore_from_seed', _('I already have a seed')), ('restore_from_key', _('Use a master key')), ] - if not self.is_kivy: + if self.hw_wallet_enabled and not self.is_kivy: choices.append(('choose_hw_device', _('Use a hardware device'))) else: message = _('Add a cosigner to your multi-sig wallet') @@ -140,7 +141,7 @@ def choose_keystore(self): ('restore_from_key', _('Enter cosigner key')), ('restore_from_seed', _('Enter cosigner seed')), ] - if not self.is_kivy: + if self.hw_wallet_enabled and not self.is_kivy: choices.append(('choose_hw_device', _('Cosign with hardware device'))) self.choice_dialog(title=title, message=message, choices=choices, run_next=self.run)