KeystoreWizard: support seed extension
This commit is contained in:
@@ -60,7 +60,8 @@ class QEKeystoreWizard(KeystoreWizard, QEAbstractWizard, MessageBoxMixin):
|
|||||||
# attach gui classes to views
|
# attach gui classes to views
|
||||||
self.navmap_merge({
|
self.navmap_merge({
|
||||||
'keystore_type': {'gui': WCExtendKeystore},
|
'keystore_type': {'gui': WCExtendKeystore},
|
||||||
'enterseed': {'gui': WCHaveSeed},
|
'enter_seed': {'gui': WCHaveSeed},
|
||||||
|
'enter_ext': {'gui': WCEnterExt},
|
||||||
'choose_hardware_device': {'gui': WCChooseHWDevice},
|
'choose_hardware_device': {'gui': WCChooseHWDevice},
|
||||||
'script_and_derivation': {'gui': WCScriptAndDerivation},
|
'script_and_derivation': {'gui': WCScriptAndDerivation},
|
||||||
'wallet_password': {'gui': WCWalletPassword},
|
'wallet_password': {'gui': WCWalletPassword},
|
||||||
|
|||||||
@@ -813,7 +813,10 @@ class KeystoreWizard(NewWalletWizard):
|
|||||||
'keystore_type': {
|
'keystore_type': {
|
||||||
'next': self.on_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,
|
'accept': self.update_keystore,
|
||||||
'last': True
|
'last': True
|
||||||
},
|
},
|
||||||
@@ -833,7 +836,7 @@ class KeystoreWizard(NewWalletWizard):
|
|||||||
def on_keystore_type(self, wizard_data: dict) -> str:
|
def on_keystore_type(self, wizard_data: dict) -> str:
|
||||||
t = wizard_data['keystore_type']
|
t = wizard_data['keystore_type']
|
||||||
return {
|
return {
|
||||||
'haveseed': 'enterseed',
|
'haveseed': 'enter_seed',
|
||||||
'hardware': 'choose_hardware_device'
|
'hardware': 'choose_hardware_device'
|
||||||
}.get(t)
|
}.get(t)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user