aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index 16fcff21..d3cd7b81 100644
--- a/main.qml
+++ b/main.qml
@@ -100,6 +100,7 @@ ApplicationWindow {
property bool splashDisplayedBeforeButtonRequest;
property bool themeTransition: false
property int backgroundSyncType: Wallet.BackgroundSync_Off;
+ property bool isQuitting: false
// fiat price conversion
property real fiatPrice: 0
@@ -282,6 +283,15 @@ ApplicationWindow {
persistentSettings.kdfRounds);
}
+ function gracefulQuit() {
+ if (isQuitting)
+ return;
+ isQuitting = true;
+ closeWallet(function() {
+ Qt.quit();
+ })
+ }
+
function closeWallet(callback) {
// Disconnect all listeners