From c1db8ab0ab8d0ca0a2779b794d8232caec3e5554 Mon Sep 17 00:00:00 2001 From: Eduard Gert Date: Thu, 28 May 2026 18:04:38 +0200 Subject: [PATCH] add manage profiles to tray --- client/ui/i18n/locales/de/common.json | 1 + client/ui/i18n/locales/en/common.json | 1 + client/ui/i18n/locales/hu/common.json | 1 + client/ui/tray.go | 4 ++++ 4 files changed, 7 insertions(+) diff --git a/client/ui/i18n/locales/de/common.json b/client/ui/i18n/locales/de/common.json index 00b90804f..1e6032fb5 100644 --- a/client/ui/i18n/locales/de/common.json +++ b/client/ui/i18n/locales/de/common.json @@ -18,6 +18,7 @@ "tray.menu.exitNode": "Exit-Node", "tray.menu.networks": "Ressourcen", "tray.menu.profiles": "Profile", + "tray.menu.manageProfiles": "Profile verwalten", "tray.menu.settings": "Einstellungen...", "tray.menu.debugBundle": "Debug-Paket erstellen", "tray.menu.about": "Hilfe & Support", diff --git a/client/ui/i18n/locales/en/common.json b/client/ui/i18n/locales/en/common.json index 75e19272d..5a8cadbab 100644 --- a/client/ui/i18n/locales/en/common.json +++ b/client/ui/i18n/locales/en/common.json @@ -18,6 +18,7 @@ "tray.menu.exitNode": "Exit Node", "tray.menu.networks": "Resources", "tray.menu.profiles": "Profiles", + "tray.menu.manageProfiles": "Manage Profiles", "tray.menu.settings": "Settings...", "tray.menu.debugBundle": "Create Debug Bundle", "tray.menu.about": "Help & Support", diff --git a/client/ui/i18n/locales/hu/common.json b/client/ui/i18n/locales/hu/common.json index ae2273048..de11c6468 100644 --- a/client/ui/i18n/locales/hu/common.json +++ b/client/ui/i18n/locales/hu/common.json @@ -18,6 +18,7 @@ "tray.menu.exitNode": "Kilépő csomópont", "tray.menu.networks": "Erőforrások", "tray.menu.profiles": "Profilok", + "tray.menu.manageProfiles": "Profilok kezelése", "tray.menu.settings": "Beállítások...", "tray.menu.debugBundle": "Hibakeresési csomag készítése", "tray.menu.about": "Súgó és támogatás", diff --git a/client/ui/tray.go b/client/ui/tray.go index c562c3030..5d1114db4 100644 --- a/client/ui/tray.go +++ b/client/ui/tray.go @@ -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)