1
0

wizard: bitbox_ view prefixes to bitbox02_

This commit is contained in:
Sander van Grieken
2023-08-23 12:03:30 +02:00
parent 66e9f502b0
commit 2739c2fd7b
2 changed files with 11 additions and 11 deletions

View File

@@ -727,23 +727,23 @@ class BitBox02Plugin(HW_PluginBase):
def wizard_entry_for_device(self, device_info: 'DeviceInfo', *, new_wallet=True) -> str: def wizard_entry_for_device(self, device_info: 'DeviceInfo', *, new_wallet=True) -> str:
if new_wallet: 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: else:
return 'bitbox_unlock' return 'bitbox02_unlock'
# insert trezor pages in new wallet wizard # insert trezor pages in new wallet wizard
def extend_wizard(self, wizard: 'NewWalletWizard'): def extend_wizard(self, wizard: 'NewWalletWizard'):
views = { views = {
'bitbox_start': { 'bitbox02_start': {
'next': 'bitbox_xpub', 'next': 'bitbox02_xpub',
}, },
'bitbox_xpub': { 'bitbox02_xpub': {
'next': lambda d: wizard.wallet_password_view(d) if wizard.last_cosigner(d) else 'multisig_cosigner_keystore', 'next': lambda d: wizard.wallet_password_view(d) if wizard.last_cosigner(d) else 'multisig_cosigner_keystore',
'accept': wizard.maybe_master_pubkey, 'accept': wizard.maybe_master_pubkey,
'last': lambda d: wizard.is_single_password() and wizard.last_cosigner(d) 'last': lambda d: wizard.is_single_password() and wizard.last_cosigner(d)
}, },
'bitbox_not_initialized': {}, 'bitbox02_not_initialized': {},
'bitbox_unlock': { 'bitbox02_unlock': {
'last': True 'last': True
}, },
} }

View File

@@ -77,10 +77,10 @@ class Plugin(BitBox02Plugin, QtPluginBase):
def extend_wizard(self, wizard: 'QENewWalletWizard'): def extend_wizard(self, wizard: 'QENewWalletWizard'):
super().extend_wizard(wizard) super().extend_wizard(wizard)
views = { views = {
'bitbox_start': {'gui': WCScriptAndDerivation}, 'bitbox02_start': {'gui': WCScriptAndDerivation},
'bitbox_xpub': {'gui': WCHWXPub}, 'bitbox02_xpub': {'gui': WCHWXPub},
'bitbox_not_initialized': {'gui': WCHWUninitialized}, 'bitbox02_not_initialized': {'gui': WCHWUninitialized},
'bitbox_unlock': {'gui': WCHWUnlock} 'bitbox02_unlock': {'gui': WCHWUnlock}
} }
wizard.navmap_merge(views) wizard.navmap_merge(views)