From 422e03522e5fd99056a29fa55dfe1cae5015f606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=ABck=20V=C3=A9zien?= Date: Tue, 13 Feb 2018 17:01:17 +0100 Subject: [PATCH] Fix app-finish-rendering --- src/main/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/app.js b/src/main/app.js index 17140308..d4985a80 100644 --- a/src/main/app.js +++ b/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() } })