mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-23 22:09:09 +02:00
add manage profiles to tray
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
"tray.menu.exitNode": "Exit-Node",
|
"tray.menu.exitNode": "Exit-Node",
|
||||||
"tray.menu.networks": "Ressourcen",
|
"tray.menu.networks": "Ressourcen",
|
||||||
"tray.menu.profiles": "Profile",
|
"tray.menu.profiles": "Profile",
|
||||||
|
"tray.menu.manageProfiles": "Profile verwalten",
|
||||||
"tray.menu.settings": "Einstellungen...",
|
"tray.menu.settings": "Einstellungen...",
|
||||||
"tray.menu.debugBundle": "Debug-Paket erstellen",
|
"tray.menu.debugBundle": "Debug-Paket erstellen",
|
||||||
"tray.menu.about": "Hilfe & Support",
|
"tray.menu.about": "Hilfe & Support",
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
"tray.menu.exitNode": "Exit Node",
|
"tray.menu.exitNode": "Exit Node",
|
||||||
"tray.menu.networks": "Resources",
|
"tray.menu.networks": "Resources",
|
||||||
"tray.menu.profiles": "Profiles",
|
"tray.menu.profiles": "Profiles",
|
||||||
|
"tray.menu.manageProfiles": "Manage Profiles",
|
||||||
"tray.menu.settings": "Settings...",
|
"tray.menu.settings": "Settings...",
|
||||||
"tray.menu.debugBundle": "Create Debug Bundle",
|
"tray.menu.debugBundle": "Create Debug Bundle",
|
||||||
"tray.menu.about": "Help & Support",
|
"tray.menu.about": "Help & Support",
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
"tray.menu.exitNode": "Kilépő csomópont",
|
"tray.menu.exitNode": "Kilépő csomópont",
|
||||||
"tray.menu.networks": "Erőforrások",
|
"tray.menu.networks": "Erőforrások",
|
||||||
"tray.menu.profiles": "Profilok",
|
"tray.menu.profiles": "Profilok",
|
||||||
|
"tray.menu.manageProfiles": "Profilok kezelése",
|
||||||
"tray.menu.settings": "Beállítások...",
|
"tray.menu.settings": "Beállítások...",
|
||||||
"tray.menu.debugBundle": "Hibakeresési csomag készítése",
|
"tray.menu.debugBundle": "Hibakeresési csomag készítése",
|
||||||
"tray.menu.about": "Súgó és támogatás",
|
"tray.menu.about": "Súgó és támogatás",
|
||||||
|
|||||||
@@ -1079,6 +1079,10 @@ func (t *Tray) loadProfiles() {
|
|||||||
activeEmail = p.Email
|
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)
|
log.Infof("tray loadProfiles: received %d profile(s) for user %q, active=%q", len(profiles), username, activeName)
|
||||||
if t.profileSubmenuItem != nil && activeName != "" {
|
if t.profileSubmenuItem != nil && activeName != "" {
|
||||||
t.profileSubmenuItem.SetLabel(activeName)
|
t.profileSubmenuItem.SetLabel(activeName)
|
||||||
|
|||||||
Reference in New Issue
Block a user