Tunnel detail: For now, don't allow cancelling when resolving domains is in progress
This commit is contained in:
parent
2781026728
commit
7d61385572
|
@ -279,7 +279,7 @@ class TunnelDetailTableViewStatusCell: UITableViewCell {
|
||||||
DispatchQueue.main.async { [weak statusSwitch] in
|
DispatchQueue.main.async { [weak statusSwitch] in
|
||||||
guard let statusSwitch = statusSwitch else { return }
|
guard let statusSwitch = statusSwitch else { return }
|
||||||
statusSwitch.isOn = !(status == .deactivating || status == .inactive)
|
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
|
textLabel?.textColor = (status == .active || status == .inactive) ? UIColor.black : UIColor.gray
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue