Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ui/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading