aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-09-05 20:25:32 +0200
committerJeroen Leenarts <jeroen.leenarts@gmail.com>2018-09-05 20:25:32 +0200
commit24623c4ea380095ff4c59ca1deffc563990e7ffe (patch)
tree0f3a97d5a72896ed9edcda628ff90ebfdb4e72f5
parentMake sure to refresh provider managers after saving. (diff)
downloadwireguard-apple-24623c4ea380095ff4c59ca1deffc563990e7ffe.tar.xz
wireguard-apple-24623c4ea380095ff4c59ca1deffc563990e7ffe.zip
Remove item from provider managers on delete.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--WireGuard/Coordinators/AppCoordinator.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/Coordinators/AppCoordinator.swift b/WireGuard/Coordinators/AppCoordinator.swift
index c3595c6..0321674 100644
--- a/WireGuard/Coordinators/AppCoordinator.swift
+++ b/WireGuard/Coordinators/AppCoordinator.swift
@@ -427,6 +427,7 @@ extension AppCoordinator: TunnelsTableViewControllerDelegate {
os_log("error removing preferences: %{public}@", log: Log.general, type: .error, error.localizedDescription)
return
}
+ self.providerManagers?.removeAll { $0 == manager }
os_log("removed preferences", log: Log.general, type: .info)
}
}