Skip to content

Commit

Permalink
Revert "Removed hw wallet disable property"
Browse files Browse the repository at this point in the history
This reverts commit 18c0a70 until Equihash hardfork is done and everything can be tested
  • Loading branch information
wilsonmeier committed Jun 30, 2018
1 parent 0aafc64 commit 5668073
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/base_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -132,15 +133,15 @@ 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')
choices = [
('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)
Expand Down

0 comments on commit 5668073

Please sign in to comment.