diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-03 15:54:02 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-03 16:05:02 +0530 |
commit | a512216d85f87ece6203cbb4e41e9d61328d2dd9 (patch) | |
tree | 3a3bda64244649ea66c0350ce635b21630421534 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | |
parent | Tunnel list: Don't show the detail view after creating a config from scratch (diff) | |
download | wireguard-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>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 1 |
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, |