aboutsummaryrefslogtreecommitdiff
path: root/pages/settings
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-07-02 10:57:37 +0000
committerxiphon <xiphon@protonmail.com>2019-07-02 11:11:38 +0000
commitab9e31e7cc5ab68a8291ff6ee1aa6d423484eea0 (patch)
treeb3a71f518cb884461a701c7d5ba7375b60d2dc5f /pages/settings
parentc4b3fbae1dfa8539db918879c7e7e54331f8b806 (diff)
downloadmonzero-gui-ab9e31e7cc5ab68a8291ff6ee1aa6d423484eea0.tar.gz
monzero-gui-ab9e31e7cc5ab68a8291ff6ee1aa6d423484eea0.tar.xz
monzero-gui-ab9e31e7cc5ab68a8291ff6ee1aa6d423484eea0.zip
WalletManager: async close with splash screen
Diffstat (limited to 'pages/settings')
-rw-r--r--pages/settings/SettingsInfo.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml
index b329c068..938bd122 100644
--- a/pages/settings/SettingsInfo.qml
+++ b/pages/settings/SettingsInfo.qml
@@ -208,10 +208,11 @@ Rectangle {
confirmationDialog.icon = StandardIcon.Question
confirmationDialog.cancelText = qsTr("Cancel")
confirmationDialog.onAcceptedCallback = function() {
- walletManager.closeWallet();
- walletManager.clearWalletCache(persistentSettings.wallet_path);
- walletManager.openWalletAsync(persistentSettings.wallet_path, appWindow.walletPassword,
- persistentSettings.nettype, persistentSettings.kdfRounds);
+ appWindow.closeWallet(function() {
+ walletManager.clearWalletCache(persistentSettings.wallet_path);
+ walletManager.openWalletAsync(persistentSettings.wallet_path, appWindow.walletPassword,
+ persistentSettings.nettype, persistentSettings.kdfRounds);
+ });
}
confirmationDialog.onRejectedCallback = null;