Skip to content

Commit e4b1099

Browse files
authored
Merge pull request #22 from saionjisekai/main
fix(0.3.0): missing `app.quit()` when `window-all-closed`
2 parents 648e15e + 572c878 commit e4b1099

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

electron/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function createWindow() {
4141

4242
app.on('window-all-closed', () => {
4343
win = null
44+
if (process.platform !== 'darwin') app.quit()
4445
})
4546

4647
app.whenReady().then(createWindow)

0 commit comments

Comments
 (0)