add manage profiles to tray

This commit is contained in:
Eduard Gert
2026-05-28 18:04:38 +02:00
parent 2bf945e745
commit c1db8ab0ab
4 changed files with 7 additions and 0 deletions
+4
View File
@@ -1079,6 +1079,10 @@ func (t *Tray) loadProfiles() {
activeEmail = p.Email
}
}
t.profileSubmenu.AddSeparator()
t.profileSubmenu.Add(t.loc.T("tray.menu.manageProfiles")).OnClick(func(*application.Context) {
t.svc.WindowManager.OpenSettings("profiles")
})
log.Infof("tray loadProfiles: received %d profile(s) for user %q, active=%q", len(profiles), username, activeName)
if t.profileSubmenuItem != nil && activeName != "" {
t.profileSubmenuItem.SetLabel(activeName)