UI: iOS: disable list rows when no config
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
1 parent
7171df84fa
commit
86afd1a46a
2 files changed
+5
No files matched your search
@@ -159,6 +159,10 @@ class TunnelListCell: UITableViewCell {
|
||||
statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active)
|
||||
}
|
||||
|
||||
if tunnel.tunnelConfiguration == nil {
|
||||
statusSwitch.isUserInteractionEnabled = false
|
||||
backgroundColor = .systemPink
|
||||
}
|
||||
}
|
||||
|
||||
private func reset(animated: Bool) {
|
||||
|
||||
Reference in new issue
Block a user