From a512216d85f87ece6203cbb4e41e9d61328d2dd9 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sat, 3 Nov 2018 15:54:02 +0530 Subject: [PATCH] Tunnels list: Should deselect the row when handling the selection Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 1 + 1 file changed, 1 insertion(+) 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,