From: Roopesh Chander Date: Thu, 17 Jan 2019 08:35:20 +0000 (+0530) Subject: macOS: Make sure app is active when showing the About dialog X-Git-Tag: 0.0.20190207-1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0245190c178ffde78b9f6d8f965a72261615dc;p=thirdparty%2Fwireguard-apple.git macOS: Make sure app is active when showing the About dialog Signed-off-by: Roopesh Chander --- 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: ""