mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Merge pull request #1721 from BoostIO/fix-quit
Always quit app when all window closed
This commit is contained in:
@@ -69,6 +69,10 @@ ipc.on('update-app-confirm', function (event, msg) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.on('window-all-closed', function () {
|
||||||
|
app.quit()
|
||||||
|
})
|
||||||
|
|
||||||
app.on('ready', function () {
|
app.on('ready', function () {
|
||||||
mainWindow = require('./main-window')
|
mainWindow = require('./main-window')
|
||||||
|
|
||||||
|
|||||||
@@ -56,11 +56,8 @@ if (process.platform === 'darwin' || process.env.DESKTOP_SESSION === 'cinnamon')
|
|||||||
app.on('before-quit', function (e) {
|
app.on('before-quit', function (e) {
|
||||||
mainWindow.removeAllListeners()
|
mainWindow.removeAllListeners()
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
app.on('window-all-closed', function () {
|
|
||||||
app.quit()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mainWindow.on('resize', _.throttle(storeWindowSize, 500))
|
mainWindow.on('resize', _.throttle(storeWindowSize, 500))
|
||||||
|
|
||||||
function storeWindowSize () {
|
function storeWindowSize () {
|
||||||
|
|||||||
Reference in New Issue
Block a user