Skip to content

Commit d6d130b

Browse files
committed
app won't quit before Ctrl+ Q
1 parent 40410eb commit d6d130b

2 files changed

Lines changed: 6 additions & 84 deletions

File tree

lib/config.js

Lines changed: 0 additions & 82 deletions
This file was deleted.

lib/main-app.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const nodeIpc = require('@rokt33r/node-ipc')
1010
const GhReleases = require('electron-gh-releases')
1111
// electron.crashReporter.start()
1212

13-
require('./config')
1413
var mainWindow = null
1514
var finderProcess = null
1615
var finderWindow = null
@@ -273,7 +272,12 @@ app.on('ready', function () {
273272
mainWindow.setMenu(menu)
274273
}
275274
mainWindow.on('close', function (e) {
276-
app.quit()
275+
if (appQuit) {
276+
app.quit()
277+
} else {
278+
mainWindow.hide()
279+
e.preventDefault()
280+
}
277281
})
278282
switch (process.platform) {
279283
case 'darwin':

0 commit comments

Comments
 (0)