diff --git a/ui/desktop/src/main.ts b/ui/desktop/src/main.ts index 630f208b7cc6..7245077bcf8e 100644 --- a/ui/desktop/src/main.ts +++ b/ui/desktop/src/main.ts @@ -1755,8 +1755,10 @@ app.on('before-quit', async (event) => { // User clicked "Quit" // Set a flag to avoid showing the dialog again app.removeAllListeners('before-quit'); - // Actually quit the app - app.quit(); + // Force quit the app + process.nextTick(() => { + app.exit(0); + }); } } catch (error) { console.error('Error showing quit dialog:', error);