From 8184093a34ffddcedd08017e764f76499f2b496b Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 4 Oct 2022 14:34:48 +0200 Subject: [PATCH] qml: start new wallet wizard immediately after network wizard on initial start --- electrum/gui/qml/components/NewWalletWizard.qml | 2 -- electrum/gui/qml/components/main.qml | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/components/NewWalletWizard.qml b/electrum/gui/qml/components/NewWalletWizard.qml index 95fbe665b..cb7bd1af3 100644 --- a/electrum/gui/qml/components/NewWalletWizard.qml +++ b/electrum/gui/qml/components/NewWalletWizard.qml @@ -15,8 +15,6 @@ Wizard { property alias path: walletdb.path - enter: null // disable transition - // State transition functions. These functions are called when the 'Next' // button is pressed. Depending on the data create the next page // in the conversation. diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index 18ffe0228..270e973eb 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -221,6 +221,15 @@ ApplicationWindow app.visible = false 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() } else { Daemon.load_wallet()