wizard: add script and derivation to keystorewizard flow. fixes #10063
This commit is contained in:
@@ -48,7 +48,6 @@ MSG_HW_STORAGE_ENCRYPTION = _("Set wallet file encryption.") + '\n'\
|
||||
+ _("It also contains your master public key that allows watching your addresses.")
|
||||
|
||||
|
||||
|
||||
class QEKeystoreWizard(KeystoreWizard, QEAbstractWizard, MessageBoxMixin):
|
||||
_logger = get_logger(__name__)
|
||||
|
||||
|
||||
@@ -210,11 +210,16 @@ class KeystoreWizard(AbstractWizard):
|
||||
'next': self.on_keystore_type
|
||||
},
|
||||
'enter_seed': {
|
||||
'next': 'enter_ext',
|
||||
'accept': lambda d: None if self.wants_ext(d) else self.update_keystore(d),
|
||||
'last': lambda d: not self.wants_ext(d),
|
||||
'next': lambda d: 'enter_ext' if self.wants_ext(d) else 'script_and_derivation',
|
||||
'accept': lambda d: None if (self.wants_ext(d) or self.needs_derivation_path(d)) else self.update_keystore(d),
|
||||
'last': lambda d: not self.wants_ext(d) and not self.needs_derivation_path(d),
|
||||
},
|
||||
'enter_ext': {
|
||||
'next': 'script_and_derivation',
|
||||
'accept': lambda d: None if self.needs_derivation_path(d) else self.update_keystore(d),
|
||||
'last': lambda d: not self.needs_derivation_path(d)
|
||||
},
|
||||
'script_and_derivation': {
|
||||
'accept': self.update_keystore,
|
||||
'last': True
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user