1
0

create wallet at end of new wallet wizard

This commit is contained in:
Sander van Grieken
2022-03-08 12:07:50 +01:00
parent 145e7e3440
commit 4cae116ad8
5 changed files with 78 additions and 2 deletions

View File

@@ -2,11 +2,15 @@ import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
import org.electrum 1.0
Wizard {
id: walletwizard
title: qsTr('New Wallet')
signal walletCreated
enter: null // disable transition
// State transition functions. These functions are called when the 'Next'
@@ -77,5 +81,14 @@ Wizard {
start.next.connect(function() {walletnameDone()})
}
onAccepted: {
console.log('Finished new wallet wizard')
walletdb.create_storage(wizard_data)
}
WalletDB {
id: walletdb
onCreateSuccess: walletwizard.walletCreated()
}
}

View File

@@ -100,6 +100,9 @@ Pane {
onClicked: {
var dialog = app.newWalletWizard.createObject(rootItem)
dialog.open()
dialog.walletCreated.connect(function() {
Daemon.availableWallets.reload()
})
}
}
}