diff options
author | Eric Kuck <eric@bluelinelabs.com> | 2018-12-21 21:59:43 -0600 |
---|---|---|
committer | Eric Kuck <eric@bluelinelabs.com> | 2018-12-21 21:59:43 -0600 |
commit | 9098cd1161be1c6e7175fdf48128faed6a4438f5 (patch) | |
tree | 6be9055a0c05620ee7be3bbd0e875b9a0560a715 /WireGuard/WireGuard/UI/iOS/AppDelegate.swift | |
parent | Localize remaining strings in network extension (diff) | |
download | wireguard-apple-9098cd1161be1c6e7175fdf48128faed6a4438f5.tar.xz wireguard-apple-9098cd1161be1c6e7175fdf48128faed6a4438f5.zip |
Removing a tunnel from iOS's settings is now immediately reflected in app
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/AppDelegate.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/AppDelegate.swift | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/AppDelegate.swift b/WireGuard/WireGuard/UI/iOS/AppDelegate.swift index 428f732..9c3aa9f 100644 --- a/WireGuard/WireGuard/UI/iOS/AppDelegate.swift +++ b/WireGuard/WireGuard/UI/iOS/AppDelegate.swift @@ -10,8 +10,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? var mainVC: MainViewController? - func application(_ application: UIApplication, - willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { Logger.configureGlobal(withFilePath: FileManager.appLogFileURL?.path) let window = UIWindow(frame: UIScreen.main.bounds) @@ -50,9 +49,7 @@ extension AppDelegate { return true } - func application(_ application: UIApplication, - viewControllerWithRestorationIdentifierPath identifierComponents: [String], - coder: NSCoder) -> UIViewController? { + func application(_ application: UIApplication, viewControllerWithRestorationIdentifierPath identifierComponents: [String], coder: NSCoder) -> UIViewController? { guard let vcIdentifier = identifierComponents.last else { return nil } if vcIdentifier.hasPrefix("TunnelDetailVC:") { let tunnelName = String(vcIdentifier.suffix(vcIdentifier.count - "TunnelDetailVC:".count)) |