|
@@ -36,6 +36,7 @@ app.on('ready', () => {
|
|
|
const gotTheLock = app.requestSingleInstanceLock()
|
|
|
if (!gotTheLock) {
|
|
|
app.exit(0)
|
|
|
+ return
|
|
|
}
|
|
|
|
|
|
app.on('second-instance', () => {
|
|
@@ -56,10 +57,6 @@ app.on('ready', () => {
|
|
|
init()
|
|
|
})
|
|
|
|
|
|
-if (process.platform === 'darwin') {
|
|
|
- app.dock.hide()
|
|
|
-}
|
|
|
-
|
|
|
function firstRunWindow() {
|
|
|
// Create the browser window.
|
|
|
welcomeWindow = new BrowserWindow({
|
|
@@ -198,6 +195,10 @@ function init() {
|
|
|
server()
|
|
|
|
|
|
if (store.get('first-time-run') && installed()) {
|
|
|
+ if (process.platform === 'darwin') {
|
|
|
+ app.dock.hide()
|
|
|
+ }
|
|
|
+
|
|
|
app.setLoginItemSettings({ openAtLogin: app.getLoginItemSettings().openAtLogin })
|
|
|
return
|
|
|
}
|