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

Loading…
Cancel
Save