1
0

flake happifier

This commit is contained in:
Sander van Grieken
2023-08-11 15:55:54 +02:00
parent b2a41b6363
commit 7a2633b2de
7 changed files with 40 additions and 27 deletions

View File

@@ -1,5 +1,6 @@
import threading
from functools import partial
from typing import TYPE_CHECKING
from PyQt5.QtCore import pyqtSignal, Qt
@@ -16,6 +17,9 @@ from electrum.gui.qt.wizard.wizard import WizardComponent
from .jade import JadePlugin
if TYPE_CHECKING:
from electrum.gui.qt.wizard.wallet import QENewWalletWizard
class Plugin(JadePlugin, QtPluginBase):
icon_unpaired = "jade_unpaired.png"
@@ -36,11 +40,11 @@ class Plugin(JadePlugin, QtPluginBase):
menu.addAction(_("Show on Jade"), show_address)
@hook
def init_wallet_wizard(self, wizard: 'QEWalletWizard'):
def init_wallet_wizard(self, wizard: 'QENewWalletWizard'):
self.extend_wizard(wizard)
# insert trezor pages in new wallet wizard
def extend_wizard(self, wizard: 'NewWalletWizard'):
def extend_wizard(self, wizard: 'QENewWalletWizard'):
super().extend_wizard(wizard)
views = {
'jade_start': { 'gui': WCScriptAndDerivation },