create wallet at end of new wallet wizard
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -100,6 +100,9 @@ Pane {
|
||||
onClicked: {
|
||||
var dialog = app.newWalletWizard.createObject(rootItem)
|
||||
dialog.open()
|
||||
dialog.walletCreated.connect(function() {
|
||||
Daemon.availableWallets.reload()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user