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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user