refactor 'init_wallet_wizard' hook a bit. add test_wizard trezor test
This commit is contained in:
@@ -54,10 +54,6 @@ class Plugin(BitBox02Plugin, QtPluginBase):
|
||||
device_name = "{} ({})".format(self.device, keystore.label)
|
||||
mpk_text.addButton(read_QIcon("eye1.png"), on_button_click, _("Show on {}").format(device_name))
|
||||
|
||||
@hook
|
||||
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
self.extend_wizard(wizard)
|
||||
|
||||
# insert bitbox02 pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
|
||||
@@ -124,10 +124,6 @@ class Plugin(ColdcardPlugin, QtPluginBase):
|
||||
# - doesn't matter if device not connected, continue
|
||||
CKCCSettingsDialog(window, self, keystore).exec()
|
||||
|
||||
@hook
|
||||
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
self.extend_wizard(wizard)
|
||||
|
||||
# insert coldcard pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
|
||||
@@ -47,10 +47,6 @@ class Plugin(DigitalBitboxPlugin, QtPluginBase):
|
||||
return
|
||||
self._add_menu_action(menu, addr, wallet)
|
||||
|
||||
@hook
|
||||
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
self.extend_wizard(wizard)
|
||||
|
||||
# insert digitalbitbox pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
|
||||
@@ -41,10 +41,6 @@ class Plugin(JadePlugin, QtPluginBase):
|
||||
return
|
||||
self._add_menu_action(menu, addr, wallet)
|
||||
|
||||
@hook
|
||||
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
self.extend_wizard(wizard)
|
||||
|
||||
# insert jade pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
|
||||
@@ -323,10 +323,6 @@ class Plugin(KeepKeyPlugin, QtPlugin):
|
||||
def pin_matrix_widget_class(self):
|
||||
return PinMatrixWidget
|
||||
|
||||
@hook
|
||||
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
self.extend_wizard(wizard)
|
||||
|
||||
# insert keepkey pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
|
||||
@@ -40,10 +40,6 @@ class Plugin(LedgerPlugin, QtPluginBase):
|
||||
return
|
||||
self._add_menu_action(menu, addr, wallet)
|
||||
|
||||
@hook
|
||||
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
self.extend_wizard(wizard)
|
||||
|
||||
# insert ledger pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
|
||||
@@ -199,10 +199,6 @@ class Plugin(SafeTPlugin, QtPlugin):
|
||||
def pin_matrix_widget_class(self):
|
||||
return PinMatrixWidget
|
||||
|
||||
@hook
|
||||
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
self.extend_wizard(wizard)
|
||||
|
||||
# insert safe_t pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
|
||||
@@ -466,10 +466,6 @@ class Plugin(TrezorPlugin, QtPlugin):
|
||||
def pin_matrix_widget_class(self):
|
||||
return PinMatrixWidget
|
||||
|
||||
@hook
|
||||
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
self.extend_wizard(wizard)
|
||||
|
||||
# insert trezor pages in new wallet wizard
|
||||
def extend_wizard(self, wizard: 'QENewWalletWizard'):
|
||||
super().extend_wizard(wizard)
|
||||
|
||||
Reference in New Issue
Block a user