qml: refactor is_last checks to mostly lambdas, add multisig flow for 1st cosigner keystore,
add initial flow and view placeholders for additional cosigners.
This commit is contained in:
@@ -329,7 +329,7 @@ class Plugin(TrustedCoinPlugin):
|
||||
'next': lambda d: 'trustedcoin_tos_email' if d['trustedcoin_keepordisable'] != 'disable'
|
||||
else 'wallet_password',
|
||||
'accept': self.recovery_disable,
|
||||
'last': lambda v,d: wizard.last_if_single_password() and d['trustedcoin_keepordisable'] == 'disable'
|
||||
'last': lambda v,d: wizard.is_single_password() and d['trustedcoin_keepordisable'] == 'disable'
|
||||
},
|
||||
'trustedcoin_tos_email': {
|
||||
'gui': '../../../../plugins/trustedcoin/qml/Terms',
|
||||
@@ -339,7 +339,7 @@ class Plugin(TrustedCoinPlugin):
|
||||
'gui': '../../../../plugins/trustedcoin/qml/ShowConfirmOTP',
|
||||
'accept': self.on_accept_otp_secret,
|
||||
'next': 'wallet_password',
|
||||
'last': wizard.last_if_single_password
|
||||
'last': lambda v,d: wizard.is_single_password()
|
||||
}
|
||||
}
|
||||
wizard.navmap_merge(views)
|
||||
|
||||
Reference in New Issue
Block a user