From 2b65e3ca153840836f62020c94786c41882ec2cd Mon Sep 17 00:00:00 2001 From: p32929 Date: Sun, 7 Jun 2020 12:25:14 +0600 Subject: [PATCH] fixed tray icon --- main.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 18e1dfc..ba4d296 100644 --- a/main.js +++ b/main.js @@ -70,6 +70,8 @@ function createWindow() { mainWindow.show() }) + mainWindow.tray = appIcon; + mainWindow.on('close', function (event) { mainWindow = null }) @@ -81,9 +83,9 @@ function createWindow() { } }) - mainWindow.on('show', function () { - appIcon.setHighlightMode('always') - }) + // mainWindow.on('show', function () { + // appIcon.setHighlightMode('always') + // }) } // This method will be called when Electron has finished