1
0

wizard: move hw_unlock to base cls, and add test_wizard unlock_hw test

This commit is contained in:
SomberNight
2025-07-21 03:33:43 +00:00
parent b0464cc934
commit 729003e557
3 changed files with 34 additions and 9 deletions

View File

@@ -382,7 +382,10 @@ class NewWalletWizard(KeystoreWizard):
KeystoreWizard.__init__(self, plugins)
self.navmap = {
'wallet_name': {
'next': 'wallet_type'
'next': lambda d: 'hw_unlock' if d.get('wallet_needs_hw_unlock') else 'wallet_type',
},
'hw_unlock': {
'next': lambda d: self.on_hardware_device(d, new_wallet=False),
},
'wallet_type': {
'next': self.on_wallet_type