Tunnel detail: For now, don't allow cancelling when resolving domains is in progress
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user