1
0

KeystoreWizard: support seed extension

This commit is contained in:
ThomasV
2025-05-26 10:35:13 +02:00
parent ce8242c29c
commit e1ac476bcf
2 changed files with 7 additions and 3 deletions

View File

@@ -60,7 +60,8 @@ class QEKeystoreWizard(KeystoreWizard, QEAbstractWizard, MessageBoxMixin):
# attach gui classes to views
self.navmap_merge({
'keystore_type': {'gui': WCExtendKeystore},
'enterseed': {'gui': WCHaveSeed},
'enter_seed': {'gui': WCHaveSeed},
'enter_ext': {'gui': WCEnterExt},
'choose_hardware_device': {'gui': WCChooseHWDevice},
'script_and_derivation': {'gui': WCScriptAndDerivation},
'wallet_password': {'gui': WCWalletPassword},

View File

@@ -813,7 +813,10 @@ class KeystoreWizard(NewWalletWizard):
'keystore_type': {
'next': self.on_keystore_type
},
'enterseed': {
'enter_seed': {
'next': lambda d: 'enter_ext' if self.wants_ext(d) else self.update_keystore
},
'enter_ext': {
'accept': self.update_keystore,
'last': True
},
@@ -833,7 +836,7 @@ class KeystoreWizard(NewWalletWizard):
def on_keystore_type(self, wizard_data: dict) -> str:
t = wizard_data['keystore_type']
return {
'haveseed': 'enterseed',
'haveseed': 'enter_seed',
'hardware': 'choose_hardware_device'
}.get(t)