Files
pallectrum/electrum/gui/qml/components/NewWalletWizard.qml
SomberNight d2cf21fc2b qml wizard: enforce homogeneous master keys in multisig
- {xpub, Ypub, Zpub} categories cannot be mixed
- old mpk must not be used in multisig
2023-05-11 10:13:51 +00:00

43 lines
873 B
QML

import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
import org.electrum 1.0
import "wizard"
Wizard {
id: walletwizard
wizardTitle: qsTr('New Wallet')
signal walletCreated
property string path
wiz: Daemon.newWalletWizard
Component.onCompleted: {
var view = wiz.startWizard()
_loadNextComponent(view)
}
onAccepted: {
console.log('Finished new wallet wizard')
wiz.createStorage(wizard_data, Daemon.singlePasswordEnabled, Daemon.singlePassword)
}
Connections {
target: wiz
function onCreateSuccess() {
walletwizard.path = wiz.path
walletwizard.walletCreated()
}
function onCreateError(error) {
var dialog = app.messageDialog.createObject(app, { text: error })
dialog.open()
}
}
}