aboutsummaryrefslogtreecommitdiffstats
path: root/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-09-22 20:56:25 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-22 20:56:25 +0200
commit86afd1a46a83038a787176272a7c486b7269e1a3 (patch)
tree689adbf9aa6613ae24185178f4c80ea6a5469f21 /Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift
parentWireGuardApp: use file to communicate launch-by-login-helper (diff)
downloadwireguard-apple-86afd1a46a83038a787176272a7c486b7269e1a3.tar.xz
wireguard-apple-86afd1a46a83038a787176272a7c486b7269e1a3.zip
UI: iOS: disable list rows when no config
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift
index 85e64ce..29f93ce 100644
--- a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift
+++ b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelsListTableViewController.swift
@@ -344,6 +344,7 @@ extension TunnelsListTableViewController: UITableViewDelegate {
}
guard let tunnelsManager = tunnelsManager else { return }
let tunnel = tunnelsManager.tunnel(at: indexPath.row)
+ guard tunnel.tunnelConfiguration != nil else { return }
showTunnelDetail(for: tunnel, animated: true)
}