aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/StatusMenu.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-02-21 19:41:01 +0530
committerRoopesh Chander <roop@roopc.net>2019-02-22 13:03:53 +0530
commit7a580e8941b95eff80dfe9d2f1deb05b3c2cab85 (patch)
tree88b7f5a62be3b07af622f7d0e4fe51e2300eaf75 /WireGuard/WireGuard/UI/macOS/StatusMenu.swift
parentmacOS: Fix removal of DNSes from AllowedIPs when DNS has changed (diff)
downloadwireguard-apple-7a580e8941b95eff80dfe9d2f1deb05b3c2cab85.tar.xz
wireguard-apple-7a580e8941b95eff80dfe9d2f1deb05b3c2cab85.zip
macOS: Show 'quitting with active tunnel' only when appropriate
Not when logging off or when the machine's shutting down Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/macOS/StatusMenu.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift
index 70d536bf..ada33dc0 100644
--- a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift
+++ b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift
@@ -122,8 +122,8 @@ class StatusMenu: NSMenu {
let aboutItem = NSMenuItem(title: tr("macMenuAbout"), action: #selector(aboutClicked), keyEquivalent: "")
aboutItem.target = self
addItem(aboutItem)
- let quitItem = NSMenuItem(title: tr("macMenuQuit"), action: #selector(NSApplication.terminate), keyEquivalent: "")
- quitItem.target = NSApp
+ let quitItem = NSMenuItem(title: tr("macMenuQuit"), action: #selector(AppDelegate.quit), keyEquivalent: "")
+ quitItem.target = NSApp.delegate
addItem(quitItem)
}