aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-10-29 04:55:50 +0530
committerRoopesh Chander <roop@roopc.net>2018-10-29 06:19:43 +0530
commit0baca8bf586bb0735d80b59306c19aff81c8d4db (patch)
treebe71b36484bba30d51001d935ccf0f5eb37d3be8 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
parentVPN: Fix deletion of tunnels (diff)
downloadwireguard-apple-0baca8bf586bb0735d80b59306c19aff81c8d4db.tar.xz
wireguard-apple-0baca8bf586bb0735d80b59306c19aff81c8d4db.zip
Tunnel list, detail: Deletion of tunnels
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift4
1 files changed, 4 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
index b2b5944..eacd896 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
@@ -263,6 +263,10 @@ extension TunnelsListTableViewController: TunnelsManagerDelegate {
func tunnelsChanged() {
tableView.reloadData()
}
+
+ func tunnelRemoved(at index: Int) {
+ tableView.deleteRows(at: [IndexPath(row: index, section: 0)], with: .automatic)
+ }
}
class TunnelsListTableViewCell: UITableViewCell {