Browse Source

Fix app-finish-rendering

master
Loëck Vézien 7 years ago
parent
commit
422e03522e
No known key found for this signature in database GPG Key ID: CBCDCE384E853AC4
  1. 8
      src/main/app.js

8
src/main/app.js

@ -7,9 +7,9 @@ import menu from 'main/menu'
import db from 'helpers/db'
// necessary to prevent win from being garbage collected
let mainWindow
let devWindow
let preloadWindow
let mainWindow = null
let devWindow = null
let preloadWindow = null
let forceClose = false
@ -261,7 +261,7 @@ ipcMain.once('app-finish-rendering', () => {
setImmediate(() => mainWindow !== null && mainWindow.focus())
}
if (devWindow !== null) {
if (__DEV__ && devWindow !== null) {
devWindow.show()
}
})

Loading…
Cancel
Save