From 557fb1ada8940eb440961c71cc3c076df5075720 Mon Sep 17 00:00:00 2001 From: Ghost <31184695+GHOSCHT@users.noreply.github.com> Date: Fri, 7 Aug 2020 17:29:03 +0200 Subject: [PATCH] Remove winow focussing --- Dashboard/app/main/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/Dashboard/app/main/index.js b/Dashboard/app/main/index.js index bb13245..4377f13 100644 --- a/Dashboard/app/main/index.js +++ b/Dashboard/app/main/index.js @@ -34,7 +34,6 @@ if (!gotTheLock) { } else { app.on('second-instance', () => { mainWindow.show(); - mainWindow.focus(); }); app.on('ready', async () => { @@ -69,7 +68,6 @@ if (!gotTheLock) { //Listen to tray icon onclick event trayIcon.on('click', () => { mainWindow.show(); - mainWindow.focus(); }); //Open devtools on startup @@ -87,7 +85,6 @@ function createTray() { label: 'Show', click: () => { mainWindow.show(); - mainWindow.focus(); }, }, {