Tunnel detail: For now, don't allow cancelling when resolving domains is in progress

This commit is contained in:
Roopesh Chander 2018-10-28 14:54:41 +05:30
parent 2781026728
commit 7d61385572
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ class TunnelDetailTableViewStatusCell: UITableViewCell {
DispatchQueue.main.async { [weak statusSwitch] in
guard let statusSwitch = statusSwitch else { return }
statusSwitch.isOn = !(status == .deactivating || status == .inactive)
statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active || status == .resolvingEndpointDomains)
statusSwitch.isUserInteractionEnabled = (status == .inactive || status == .active)
}
textLabel?.textColor = (status == .active || status == .inactive) ? UIColor.black : UIColor.gray
}