diff options
| author | selsta <selsta@sent.at> | 2026-01-20 20:53:20 +0100 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2026-01-20 20:53:20 +0100 |
| commit | 80e209df42c091fabd03c229aea5e49826c44b9b (patch) | |
| tree | 881a671f050be287101b8a2dccf8a7f9c81a1e78 /main.qml | |
| parent | e984c28fafc224df0f3d9e24a3ed942af5cf929f (diff) | |
| download | monzero-gui-80e209df42c091fabd03c229aea5e49826c44b9b.tar.gz monzero-gui-80e209df42c091fabd03c229aea5e49826c44b9b.tar.xz monzero-gui-80e209df42c091fabd03c229aea5e49826c44b9b.zip | |
filter: intercept quit event to avoid deadlock
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |
