macOS: Fix status-related menu items
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
273ee04450
commit
8951ea338f
|
@ -224,7 +224,6 @@
|
||||||
// Mac status bar menu / pulldown menu
|
// Mac status bar menu / pulldown menu
|
||||||
|
|
||||||
"macMenuNetworks (%@)" = "Networks: %@";
|
"macMenuNetworks (%@)" = "Networks: %@";
|
||||||
"macMenuNetworksInactive" = "Networks: -";
|
|
||||||
"macMenuNetworksNone" = "Networks: None";
|
"macMenuNetworksNone" = "Networks: None";
|
||||||
|
|
||||||
"macMenuManageTunnels" = "Manage tunnels";
|
"macMenuManageTunnels" = "Manage tunnels";
|
||||||
|
|
|
@ -46,10 +46,10 @@ class StatusMenu: NSMenu {
|
||||||
|
|
||||||
func addStatusMenuItems() {
|
func addStatusMenuItems() {
|
||||||
let statusTitle = tr(format: "macStatus (%@)", tr("tunnelStatusInactive"))
|
let statusTitle = tr(format: "macStatus (%@)", tr("tunnelStatusInactive"))
|
||||||
let statusMenuItem = NSMenuItem(title: statusTitle, action: #selector(manageTunnelsClicked), keyEquivalent: "")
|
let statusMenuItem = NSMenuItem(title: statusTitle, action: nil, keyEquivalent: "")
|
||||||
statusMenuItem.isEnabled = false
|
statusMenuItem.isEnabled = false
|
||||||
addItem(statusMenuItem)
|
addItem(statusMenuItem)
|
||||||
let networksMenuItem = NSMenuItem(title: tr("macMenuNetworksInactive"), action: #selector(manageTunnelsClicked), keyEquivalent: "")
|
let networksMenuItem = NSMenuItem(title: "", action: nil, keyEquivalent: "")
|
||||||
networksMenuItem.isEnabled = false
|
networksMenuItem.isEnabled = false
|
||||||
networksMenuItem.isHidden = true
|
networksMenuItem.isHidden = true
|
||||||
addItem(networksMenuItem)
|
addItem(networksMenuItem)
|
||||||
|
|
Loading…
Reference in New Issue