Files
purple-electrumwallet/electrum/gui/qml/components/NewWalletWizard.qml
T
Sander van Grieken 15e2ed4f58 rewrite server connect wizard to new wizard style
'last' property on WizardComponents is now queried from UI, not from the wizard.
This allows the content of the WizardComponent itself to be taken into account.
2022-10-21 13:32:16 +02:00

39 lines
714 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
title: qsTr('New Wallet')
signal walletCreated
property string path
wiz: Daemon.newWalletWizard
Component.onCompleted: {
var view = wiz.start_wizard()
_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()
}
}
}