From 95e6d2517136ee6d12ab779abc95d55696f717a1 Mon Sep 17 00:00:00 2001 From: alvaro lorente Date: Mon, 5 Aug 2024 20:39:45 +0200 Subject: [PATCH] feat: fix issue with tray icon --- package.json | 2 +- src/main/TrayMenu.test.ts | 2 -- src/main/TrayMenu.ts | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index 9747bc2..4794c43 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "barklarm", "productName": "barklarm", - "version": "2.0.1", + "version": "2.0.2", "description": "Build Radiator supporting Github Actions", "main": ".vite/build/main.js", "repository": "https://github.com/barklarm/barklarm-app", diff --git a/src/main/TrayMenu.test.ts b/src/main/TrayMenu.test.ts index 6cd08e0..64be54b 100644 --- a/src/main/TrayMenu.test.ts +++ b/src/main/TrayMenu.test.ts @@ -49,7 +49,6 @@ describe('TrayMenu', () => { it('generates correct instance', () => { const tray = new TrayMenu(); expect(createFromPathMock).toBeCalledWith(join(__dirname, '..', 'assets', 'na_icon.png')); - expect(expectedImage.setTemplateImage).toBeCalledWith(true); expect(trayMock).toBeCalledWith(expectedImage); expect(buildFromTemplateMock).toHaveBeenCalledWith(tray.defaultMenuItems); expect(expectedTray.setContextMenu).toBeCalledWith(expectedMenu); @@ -66,7 +65,6 @@ describe('TrayMenu', () => { }); expect(createFromPathMock).toBeCalledWith(join(__dirname, '..', 'assets', 'ok_icon.png')); - expect(expectedImage.setTemplateImage).toBeCalledWith(true); expect(expectedTray.setImage).toBeCalledWith(expectedImage); }); }); diff --git a/src/main/TrayMenu.ts b/src/main/TrayMenu.ts index bae73b3..ca52ff2 100644 --- a/src/main/TrayMenu.ts +++ b/src/main/TrayMenu.ts @@ -63,7 +63,6 @@ export class TrayMenu { private createNativeImage() { const image = nativeImage.createFromPath(this.statusToImagePathMap[Status.NA]); - image.setTemplateImage(true); return image; }