macOS: Make sure app is active when showing the About dialog

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-01-17 14:05:20 +05:30
parent 98775bf8a0
commit 8a0245190c
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ class StatusMenu: NSMenu {
tr(format: "macAppVersion (%@)", appVersion), tr(format: "macAppVersion (%@)", appVersion),
tr(format: "macGoBackendVersion (%@)", WIREGUARD_GO_VERSION) tr(format: "macGoBackendVersion (%@)", WIREGUARD_GO_VERSION)
].joined(separator: "\n") ].joined(separator: "\n")
NSApp.activate(ignoringOtherApps: true)
NSApp.orderFrontStandardAboutPanel(options: [ NSApp.orderFrontStandardAboutPanel(options: [
.applicationVersion: appVersionString, .applicationVersion: appVersionString,
.version: "" .version: ""