]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
macOS: Make sure app is active when showing the About dialog
authorRoopesh Chander <roop@roopc.net>
Thu, 17 Jan 2019 08:35:20 +0000 (14:05 +0530)
committerRoopesh Chander <roop@roopc.net>
Thu, 17 Jan 2019 08:35:23 +0000 (14:05 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/macOS/StatusMenu.swift

index fa8b8e4468cba5133870c900d5839934099f60a7..634ea9f7fc659e65e5443c29e4ab838db7db103b 100644 (file)
@@ -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: ""