wizard: fix trezor initialisation/recover not setting page valid to True
add auto-proceed to next page after init to trezor, safe_t, keepkey
This commit is contained in:
@@ -610,12 +610,14 @@ class WCSafeTInit(WizardComponent, Logger):
|
||||
def initialize_device_task(settings, method, device_id, handler):
|
||||
try:
|
||||
self.plugin._initialize_device(settings, method, device_id, handler)
|
||||
self.logger.info('Done initialize device')
|
||||
self.valid = True
|
||||
self.wizard.requestNext.emit() # triggers Next GUI thread from event loop
|
||||
except Exception as e:
|
||||
self.valid = False
|
||||
self.error = repr(e)
|
||||
finally:
|
||||
self.init_done()
|
||||
self.busy = False
|
||||
|
||||
t = threading.Thread(
|
||||
target=initialize_device_task,
|
||||
@@ -623,9 +625,5 @@ class WCSafeTInit(WizardComponent, Logger):
|
||||
daemon=True)
|
||||
t.start()
|
||||
|
||||
def init_done(self):
|
||||
self.logger.info('Done initialize device')
|
||||
self.busy = False
|
||||
|
||||
def apply(self):
|
||||
pass
|
||||
|
||||
@@ -397,8 +397,6 @@ class SafeTPlugin(HW_PluginBase):
|
||||
tx = self.prev_tx[tx_hash]
|
||||
return self.electrum_tx_to_txtype(tx)
|
||||
|
||||
# new wizard
|
||||
|
||||
def wizard_entry_for_device(self, device_info: 'DeviceInfo', *, new_wallet=True) -> str:
|
||||
if new_wallet:
|
||||
return 'safet_start' if device_info.initialized else 'safet_not_initialized'
|
||||
|
||||
Reference in New Issue
Block a user