macOS: Get the app back in focus after macOS' VPN prompt
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
e0af06844d
commit
bc8ea55023
|
@ -234,6 +234,10 @@ extension TunnelsListTableViewController {
|
||||||
if tunnelsManager.numberOfTunnels() == 1 {
|
if tunnelsManager.numberOfTunnels() == 1 {
|
||||||
selectTunnel(at: 0)
|
selectTunnel(at: 0)
|
||||||
}
|
}
|
||||||
|
if !NSApp.isActive {
|
||||||
|
// macOS's VPN prompt might have caused us to lose focus
|
||||||
|
NSApp.activate(ignoringOtherApps: true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func tunnelModified(at index: Int) {
|
func tunnelModified(at index: Int) {
|
||||||
|
|
Loading…
Reference in New Issue