qml: start new wallet wizard immediately after network wizard on initial start
This commit is contained in:
@@ -15,8 +15,6 @@ Wizard {
|
|||||||
|
|
||||||
property alias path: walletdb.path
|
property alias path: walletdb.path
|
||||||
|
|
||||||
enter: null // disable transition
|
|
||||||
|
|
||||||
// State transition functions. These functions are called when the 'Next'
|
// State transition functions. These functions are called when the 'Next'
|
||||||
// button is pressed. Depending on the data create the next page
|
// button is pressed. Depending on the data create the next page
|
||||||
// in the conversation.
|
// in the conversation.
|
||||||
|
|||||||
@@ -221,6 +221,15 @@ ApplicationWindow
|
|||||||
app.visible = false
|
app.visible = false
|
||||||
Qt.callLater(Qt.quit)
|
Qt.callLater(Qt.quit)
|
||||||
})
|
})
|
||||||
|
dialog.accepted.connect(function() {
|
||||||
|
var newww = app.newWalletWizard.createObject(app)
|
||||||
|
newww.open()
|
||||||
|
newww.walletCreated.connect(function() {
|
||||||
|
Daemon.availableWallets.reload()
|
||||||
|
// and load the new wallet
|
||||||
|
Daemon.load_wallet(newww.path, newww.wizard_data['password'])
|
||||||
|
})
|
||||||
|
})
|
||||||
dialog.open()
|
dialog.open()
|
||||||
} else {
|
} else {
|
||||||
Daemon.load_wallet()
|
Daemon.load_wallet()
|
||||||
|
|||||||
Reference in New Issue
Block a user