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

app won't quit before Ctrl+ Q

This commit is contained in:
Dick Choi
2016-07-22 08:45:04 +09:00
parent 40410eb10f
commit d6d130b8f9
2 changed files with 6 additions and 84 deletions

View File

@@ -10,7 +10,6 @@ const nodeIpc = require('@rokt33r/node-ipc')
const GhReleases = require('electron-gh-releases')
// electron.crashReporter.start()
require('./config')
var mainWindow = null
var finderProcess = null
var finderWindow = null
@@ -273,7 +272,12 @@ app.on('ready', function () {
mainWindow.setMenu(menu)
}
mainWindow.on('close', function (e) {
app.quit()
if (appQuit) {
app.quit()
} else {
mainWindow.hide()
e.preventDefault()
}
})
switch (process.platform) {
case 'darwin':