Remove winow focussing

This commit is contained in:
GHOSCHT 2020-08-07 17:29:03 +02:00
parent 243d86e7c2
commit 557fb1ada8

View file

@ -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();
},
},
{