From fe32c1176032f2d006668006e01c85993ffe0c0e Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Wed, 30 Jun 2021 16:13:44 +0200 Subject: [PATCH] Only hide window onblur when in production --- Dashboard/src/electron.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dashboard/src/electron.js b/Dashboard/src/electron.js index a33fdbd..4a5d78f 100644 --- a/Dashboard/src/electron.js +++ b/Dashboard/src/electron.js @@ -90,7 +90,9 @@ app.on("activate", () => { // Hide window when out of focus app.on("browser-window-blur", () => { - mainWindow.hide(); + if (!isDev) { + mainWindow.hide(); + } }); // In this file you can include the rest of your app's specific main process