From 1d63509b9224432c1a495c33fbf179123217eac4 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Fri, 9 Nov 2018 19:29:34 +0530 Subject: 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 --- WireGuard/WireGuard/UI/iOS/AppDelegate.swift | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'WireGuard/WireGuard/UI/iOS/AppDelegate.swift') diff --git a/WireGuard/WireGuard/UI/iOS/AppDelegate.swift b/WireGuard/WireGuard/UI/iOS/AppDelegate.swift index 4e09650..fabdae9 100644 --- a/WireGuard/WireGuard/UI/iOS/AppDelegate.swift +++ b/WireGuard/WireGuard/UI/iOS/AppDelegate.swift @@ -37,4 +37,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { mainVC?.tunnelsListVC?.importFromFile(url: url) return true } + + func applicationDidBecomeActive(_ application: UIApplication) { + mainVC?.tunnelsListVC?.refreshTunnelConnectionStatuses() + } } -- cgit v1.2.3-59-g8ed1b