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

This commit is contained in:
Roopesh Chander 2019-01-17 14:05:20 +05:30
parent 50f6ff311c
commit b345005645
1 changed files with 1 additions and 0 deletions

View 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: ""