Skip to content

Commit 8184093

Browse files
committed
qml: start new wallet wizard immediately after network wizard on initial start
1 parent dff435a commit 8184093

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

electrum/gui/qml/components/NewWalletWizard.qml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Wizard {
1515

1616
property alias path: walletdb.path
1717

18-
enter: null // disable transition
19-
2018
// State transition functions. These functions are called when the 'Next'
2119
// button is pressed. Depending on the data create the next page
2220
// in the conversation.

electrum/gui/qml/components/main.qml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,15 @@ ApplicationWindow
221221
app.visible = false
222222
Qt.callLater(Qt.quit)
223223
})
224+
dialog.accepted.connect(function() {
225+
var newww = app.newWalletWizard.createObject(app)
226+
newww.open()
227+
newww.walletCreated.connect(function() {
228+
Daemon.availableWallets.reload()
229+
// and load the new wallet
230+
Daemon.load_wallet(newww.path, newww.wizard_data['password'])
231+
})
232+
})
224233
dialog.open()
225234
} else {
226235
Daemon.load_wallet()

0 commit comments

Comments
 (0)