1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

app will quit when main window close (win, linux only)

This commit is contained in:
Dick Choi
2016-07-28 17:41:46 +09:00
parent 9d8daac4cf
commit 7fbe456e79

View File

@@ -271,7 +271,7 @@ app.on('ready', function () {
mainWindow.setMenu(menu)
}
mainWindow.on('close', function (e) {
if (appQuit) {
if (appQuit || process.platform != 'darwin') {
app.quit()
} else {
mainWindow.hide()