VPN: Refresh tunnel statuses when app gets to the foreground
Because the tunnel could've be activated from iOS Settings now Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -37,4 +37,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
mainVC?.tunnelsListVC?.importFromFile(url: url)
|
||||
return true
|
||||
}
|
||||
|
||||
func applicationDidBecomeActive(_ application: UIApplication) {
|
||||
mainVC?.tunnelsListVC?.refreshTunnelConnectionStatuses()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user