diff options
author | Roopesh Chander <roop@roopc.net> | 2018-10-29 04:55:50 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-10-29 06:19:43 +0530 |
commit | 0baca8bf586bb0735d80b59306c19aff81c8d4db (patch) | |
tree | be71b36484bba30d51001d935ccf0f5eb37d3be8 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | |
parent | VPN: Fix deletion of tunnels (diff) | |
download | wireguard-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 '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 4 |
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 { |