Skip to content

Commit 2950322

Browse files
authored
Merge pull request #694 from CrendKing/main
Fix bug that settings are not properly saved when app is exiting
2 parents bb85e3e + ff91e9c commit 2950322

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,8 @@ function createWindow() {
186186
});
187187

188188
win.on('close', (event) => {
189-
if (GLOBALS.readyToQuit) {
190-
app.exit();
191-
} else {
189+
if (!GLOBALS.readyToQuit) {
190+
event.preventDefault();
192191
getAngularToShutDown();
193192
}
194193
});

0 commit comments

Comments
 (0)