aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-03 15:54:02 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-03 16:05:02 +0530
commita512216d85f87ece6203cbb4e41e9d61328d2dd9 (patch)
tree3a3bda64244649ea66c0350ce635b21630421534
parentTunnel list: Don't show the detail view after creating a config from scratch (diff)
downloadwireguard-apple-a512216d85f87ece6203cbb4e41e9d61328d2dd9.tar.xz
wireguard-apple-a512216d85f87ece6203cbb4e41e9d61328d2dd9.zip
Tunnels list: Should deselect the row when handling the selection
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
index 7974549..f8c43c8 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
@@ -311,6 +311,7 @@ extension TunnelsListTableViewController: UITableViewDataSource {
extension TunnelsListTableViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
+ tableView.deselectRow(at: indexPath, animated: true)
guard let tunnelsManager = tunnelsManager else { return }
let tunnel = tunnelsManager.tunnel(at: indexPath.row)
let tunnelDetailVC = TunnelDetailTableViewController(tunnelsManager: tunnelsManager,