Skip to content

Commit

Permalink
feat: fix issue with tray icon
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolorentedev committed Aug 5, 2024
1 parent 0d277e3 commit 95e6d25
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 0 additions & 2 deletions src/main/TrayMenu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
});
});
Expand Down
1 change: 0 additions & 1 deletion src/main/TrayMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export class TrayMenu {

private createNativeImage() {
const image = nativeImage.createFromPath(this.statusToImagePathMap[Status.NA]);
image.setTemplateImage(true);
return image;
}

Expand Down

0 comments on commit 95e6d25

Please sign in to comment.