From 7e24594be43150426dcc15fb7ff89cd27f292cfa Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Thu, 19 May 2022 23:26:25 +0100 Subject: [PATCH] this is annoying --- src/main/base/app.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/base/app.ts b/src/main/base/app.ts index 17c55e01..2f8100ec 100644 --- a/src/main/base/app.ts +++ b/src/main/base/app.ts @@ -259,7 +259,6 @@ export class AppEvents { height: 20 }), } - this.tray = new Tray(process.platform === 'win32' ? icons.win32 : (process.platform === 'darwin' ? icons.darwin : icons.linux)) this.tray.setToolTip(app.getName()) this.setTray(false) @@ -298,12 +297,17 @@ export class AppEvents { private setTray(visible: boolean = utils.getWindow().isVisible()) { this.i18n = utils.getLocale(utils.getStoreValue('general.language')) + const ciderIcon = nativeImage.createFromPath(path.join(__dirname, `../../resources/icons/icon.png`)).resize({ + width: 20, + height: 20 + }) + const menu = Menu.buildFromTemplate([ { label: app.getName(), enabled: false, - icon: path.join(__dirname, `../../resources/icons/icon.png`), + icon: ciderIcon, }, {type: 'separator'},