diff options
author | Roopesh Chander <roop@roopc.net> | 2018-10-28 14:54:41 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-10-28 14:54:41 +0530 |
commit | 31e5d33114e5a16f46e0a3d79ba24049e42a6c00 (patch) | |
tree | 399f37ae2c9cd5bc4f38e0abc4ad9e44242d3d3a /WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift | |
parent | VPN: Cleaner derivation of subnet mask from CIDR network prefix length (diff) | |
download | wireguard-apple-31e5d33114e5a16f46e0a3d79ba24049e42a6c00.tar.xz wireguard-apple-31e5d33114e5a16f46e0a3d79ba24049e42a6c00.zip |
Tunnel detail: For now, don't allow cancelling when resolving domains is in progress
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift index 80f421b..1f09cf4 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift @@ -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 } |