Skip to content

Commit

Permalink
fix(windowManager): fixed tray icon not showing on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamuAbba committed Mar 5, 2024
1 parent 6730734 commit 79a7c05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion electron/windowManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ class WindowManager {
* @returns void
*/
createAppTray() {
const trayIcon = join(APP_ROOT, 'assets', 'icon.png');
const trayIcon =
process.platform === 'darwin'
? join(APP_ROOT, 'assets', 'icons', '16x16.png')
: join(APP_ROOT, 'assets', 'icon.png');
this.tray = new Tray(nativeImage.createFromPath(trayIcon));
this.tray.setIgnoreDoubleClickEvents(true);

Expand Down

0 comments on commit 79a7c05

Please sign in to comment.