Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active)
}
+ if tunnel.tunnelConfiguration == nil {
+ statusSwitch.isUserInteractionEnabled = false
+ backgroundColor = .systemPink
+ }
}
private func reset(animated: Bool) {
}
guard let tunnelsManager = tunnelsManager else { return }
let tunnel = tunnelsManager.tunnel(at: indexPath.row)
+ guard tunnel.tunnelConfiguration != nil else { return }
showTunnelDetail(for: tunnel, animated: true)
}