diff options
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift b/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift index 81607de..914acc2 100644 --- a/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift +++ b/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift @@ -98,6 +98,11 @@ class TunnelListCell: UITableViewCell { fatalError("init(coder:) has not been implemented") } + override func setEditing(_ editing: Bool, animated: Bool) { + super.setEditing(editing, animated: animated) + statusSwitch.isEnabled = !editing + } + private func reset() { statusSwitch.isOn = false statusSwitch.isUserInteractionEnabled = false |