diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-17 14:05:20 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-17 14:05:23 +0530 |
commit | 8a0245190c178ffde78b9f6d8f965a72261615dc (patch) | |
tree | 82132d6c7e82f8c8d12ff12946149967314c078d | |
parent | macOS: Application: Fix comment (diff) | |
download | wireguard-apple-8a0245190c178ffde78b9f6d8f965a72261615dc.tar.xz wireguard-apple-8a0245190c178ffde78b9f6d8f965a72261615dc.zip |
macOS: Make sure app is active when showing the About dialog
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/StatusMenu.swift | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift index fa8b8e4..634ea9f 100644 --- a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift +++ b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift @@ -169,6 +169,7 @@ class StatusMenu: NSMenu { tr(format: "macAppVersion (%@)", appVersion), tr(format: "macGoBackendVersion (%@)", WIREGUARD_GO_VERSION) ].joined(separator: "\n") + NSApp.activate(ignoringOtherApps: true) NSApp.orderFrontStandardAboutPanel(options: [ .applicationVersion: appVersionString, .version: "" |