qml: use new wizard approach in qml and also implement 2FA/trustedcoin
This commit is contained in:
@@ -29,6 +29,7 @@ from .qechannelopener import QEChannelOpener
|
||||
from .qelnpaymentdetails import QELnPaymentDetails
|
||||
from .qechanneldetails import QEChannelDetails
|
||||
from .qeswaphelper import QESwapHelper
|
||||
from .qewizard import QENewWalletWizard
|
||||
|
||||
notification = None
|
||||
|
||||
@@ -217,6 +218,7 @@ class ElectrumQmlApplication(QGuiApplication):
|
||||
qmlRegisterType(QERequestDetails, 'org.electrum', 1, 0, 'RequestDetails')
|
||||
|
||||
qmlRegisterUncreatableType(QEAmount, 'org.electrum', 1, 0, 'Amount', 'Amount can only be used as property')
|
||||
qmlRegisterUncreatableType(QENewWalletWizard, 'org.electrum', 1, 0, 'NewWalletWizard', 'NewWalletWizard can only be used as property')
|
||||
|
||||
self.engine = QQmlApplicationEngine(parent=self)
|
||||
|
||||
@@ -254,6 +256,8 @@ class ElectrumQmlApplication(QGuiApplication):
|
||||
'protocol_version': version.PROTOCOL_VERSION
|
||||
})
|
||||
|
||||
self.plugins.load_plugin('trustedcoin')
|
||||
|
||||
qInstallMessageHandler(self.message_handler)
|
||||
|
||||
# get notified whether root QML document loads or not
|
||||
|
||||
Reference in New Issue
Block a user