Skip to content

Commit

Permalink
DRAFT -- not for production use!
Browse files Browse the repository at this point in the history
  • Loading branch information
luckman212 committed Oct 26, 2022
1 parent 23618f9 commit 4fd114b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/WireGuardApp/UI/macOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {
return false
}

func applicationShouldHandleReopen(_: NSApplication, hasVisibleWindows _: Bool) -> Bool {
self?.showManageTunnelsWindow(completion: nil)
return true
}

private func setDockIconAndMainMenuVisibility(isVisible: Bool, completion: (() -> Void)? = nil) {
let currentActivationPolicy = NSApp.activationPolicy()
let newActivationPolicy: NSApplication.ActivationPolicy = isVisible ? .regular : .accessory
Expand Down

0 comments on commit 4fd114b

Please sign in to comment.