From cc86795fa34635dd49caeaf83a6b8535820e4ef3 Mon Sep 17 00:00:00 2001 From: xiphon Date: Fri, 13 Dec 2019 14:30:25 +0000 Subject: WizardController: always close and re-open newly created wallet --- wizard/WizardController.qml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'wizard') diff --git a/wizard/WizardController.qml b/wizard/WizardController.qml index 235d0f1f..86364f72 100644 --- a/wizard/WizardController.qml +++ b/wizard/WizardController.qml @@ -375,8 +375,7 @@ Rectangle { // protecting wallet with password wizardController.m_wallet.setPassword(wizardController.walletOptionsPassword); - // Store password in session to be able to use password protected functions (e.g show seed) - appWindow.walletPassword = walletOptionsPassword + restart(); // save to persistent settings persistentSettings.language = wizardController.language_language @@ -540,20 +539,7 @@ Rectangle { if(isIOS) persistentSettings.wallet_path = persistentSettings.wallet_path.replace(moneroAccountsDir, ""); - console.log(moneroAccountsDir); - console.log(fn); - console.log(persistentSettings.wallet_path); - - passwordDialog.onAcceptedCallback = function() { - walletPassword = passwordDialog.password; - appWindow.initialize(); - } - passwordDialog.onRejectedCallback = function() { - console.log("Canceled"); - appWindow.viewState = "wizard"; - } - - passwordDialog.open(appWindow.usefulName(appWindow.walletPath())); + appWindow.openWallet(); } Component.onCompleted: { -- cgit v1.2.3