chore: use persistent guid to persist menu bar positioning

This commit is contained in:
haritabh-z01 2025-12-11 23:40:55 +05:30
parent e2b07afc77
commit df8c2fa42f

View file

@ -33,9 +33,10 @@ export class TrayManager {
);
// On macOS, mark as template image for proper light/dark mode support
// Use guid to persist menu bar position between app launches
if (isMacOS()) {
icon.setTemplateImage(true);
this.tray = new Tray(icon);
this.tray = new Tray(icon, { guid: "com.amical.menubar" });
} else {
this.tray = new Tray(icon);
}