UI: iOS: remove list pinking when no config

This reverts commit 86afd1a46a.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2021-09-23 06:08:20 +02:00
parent dfb685f258
commit abf506c1fe
2 changed files with 0 additions and 5 deletions

View File

@ -159,10 +159,6 @@ class TunnelListCell: UITableViewCell {
statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active) statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active)
} }
if tunnel.tunnelConfiguration == nil {
statusSwitch.isUserInteractionEnabled = false
backgroundColor = .systemPink
}
} }
private func reset(animated: Bool) { private func reset(animated: Bool) {

View File

@ -344,7 +344,6 @@ extension TunnelsListTableViewController: UITableViewDelegate {
} }
guard let tunnelsManager = tunnelsManager else { return } guard let tunnelsManager = tunnelsManager else { return }
let tunnel = tunnelsManager.tunnel(at: indexPath.row) let tunnel = tunnelsManager.tunnel(at: indexPath.row)
guard tunnel.tunnelConfiguration != nil else { return }
showTunnelDetail(for: tunnel, animated: true) showTunnelDetail(for: tunnel, animated: true)
} }