Skip to content

Commit

Permalink
Explicitly set tray image as template image
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Feb 26, 2024
1 parent 6930859 commit 6b2e685
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/electron/electron/main/services/WindowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export class WindowService {
}
const appIcon = path.join(process.env.VITE_PUBLIC, 'IconTemplate.png');
const trayImage = nativeImage.createFromPath(appIcon);
trayImage.setTemplateImage(true);
this.tray = new Tray(trayImage);
this.updateTray();
}
Expand Down

0 comments on commit 6b2e685

Please sign in to comment.