Merge pull request #4558

80e209d filter: intercept quit event to avoid deadlock (selsta)
This commit is contained in:
tobtoht
2026-01-29 15:40:40 +00:00
4 changed files with 17 additions and 0 deletions

View File

@@ -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