mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-30 12:39:54 +00:00
add manage profiles to tray
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user