We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac6811 commit 7b0a5c2Copy full SHA for 7b0a5c2
1 file changed
src/main/index.ts
@@ -58,13 +58,13 @@ function createWindow() {
58
mainWindow.on('close', (event) => {
59
store.app.set('bounds', mainWindow.getBounds())
60
61
- if (!isQuitting) {
+ if (process.platform === 'darwin' && !isQuitting) {
62
event.preventDefault()
63
mainWindow.hide()
64
+ return
65
}
- else {
66
- mainWindow.destroy()
67
- }
+
+ mainWindow.destroy()
68
})
69
70
0 commit comments