aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-22 04:11:24 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-22 04:11:24 +0530
commit8951ea338f94d2391bd279519eadb059735132c3 (patch)
tree2ab246f4b365d4628cc4f589f3294dad22f53dbe /WireGuard
parentBetter os() directives (diff)
downloadwireguard-apple-8951ea338f94d2391bd279519eadb059735132c3.tar.xz
wireguard-apple-8951ea338f94d2391bd279519eadb059735132c3.zip
macOS: Fix status-related menu items
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuard/Base.lproj/Localizable.strings1
-rw-r--r--WireGuard/WireGuard/UI/macOS/StatusMenu.swift4
2 files changed, 2 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/Base.lproj/Localizable.strings b/WireGuard/WireGuard/Base.lproj/Localizable.strings
index ab421169..79b665f9 100644
--- a/WireGuard/WireGuard/Base.lproj/Localizable.strings
+++ b/WireGuard/WireGuard/Base.lproj/Localizable.strings
@@ -224,7 +224,6 @@
// Mac status bar menu / pulldown menu
"macMenuNetworks (%@)" = "Networks: %@";
-"macMenuNetworksInactive" = "Networks: -";
"macMenuNetworksNone" = "Networks: None";
"macMenuManageTunnels" = "Manage tunnels";
diff --git a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift
index c2083681..263b9330 100644
--- a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift
+++ b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift
@@ -46,10 +46,10 @@ class StatusMenu: NSMenu {
func addStatusMenuItems() {
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
addItem(statusMenuItem)
- let networksMenuItem = NSMenuItem(title: tr("macMenuNetworksInactive"), action: #selector(manageTunnelsClicked), keyEquivalent: "")
+ let networksMenuItem = NSMenuItem(title: "", action: nil, keyEquivalent: "")
networksMenuItem.isEnabled = false
networksMenuItem.isHidden = true
addItem(networksMenuItem)