wizard: bitbox_ view prefixes to bitbox02_
This commit is contained in:
@@ -727,23 +727,23 @@ class BitBox02Plugin(HW_PluginBase):
|
||||
|
||||
def wizard_entry_for_device(self, device_info: 'DeviceInfo', *, new_wallet=True) -> str:
|
||||
if new_wallet:
|
||||
return 'bitbox_start' if device_info.initialized else 'bitbox_not_initialized'
|
||||
return 'bitbox02_start' if device_info.initialized else 'bitbox02_not_initialized'
|
||||
else:
|
||||
return 'bitbox_unlock'
|
||||
return 'bitbox02_unlock'
|
||||
|
||||
# insert trezor pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'NewWalletWizard'):
|
||||
views = {
|
||||
'bitbox_start': {
|
||||
'next': 'bitbox_xpub',
|
||||
'bitbox02_start': {
|
||||
'next': 'bitbox02_xpub',
|
||||
},
|
||||
'bitbox_xpub': {
|
||||
'bitbox02_xpub': {
|
||||
'next': lambda d: wizard.wallet_password_view(d) if wizard.last_cosigner(d) else 'multisig_cosigner_keystore',
|
||||
'accept': wizard.maybe_master_pubkey,
|
||||
'last': lambda d: wizard.is_single_password() and wizard.last_cosigner(d)
|
||||
},
|
||||
'bitbox_not_initialized': {},
|
||||
'bitbox_unlock': {
|
||||
'bitbox02_not_initialized': {},
|
||||
'bitbox02_unlock': {
|
||||
'last': True
|
||||
},
|
||||
}
|
||||
|
||||
@@ -77,10 +77,10 @@ class Plugin(BitBox02Plugin, QtPluginBase):
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
views = {
|
||||
'bitbox_start': {'gui': WCScriptAndDerivation},
|
||||
'bitbox_xpub': {'gui': WCHWXPub},
|
||||
'bitbox_not_initialized': {'gui': WCHWUninitialized},
|
||||
'bitbox_unlock': {'gui': WCHWUnlock}
|
||||
'bitbox02_start': {'gui': WCScriptAndDerivation},
|
||||
'bitbox02_xpub': {'gui': WCHWXPub},
|
||||
'bitbox02_not_initialized': {'gui': WCHWUninitialized},
|
||||
'bitbox02_unlock': {'gui': WCHWUnlock}
|
||||
}
|
||||
wizard.navmap_merge(views)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user