diff options
author | Roopesh Chander <roop@roopc.net> | 2019-03-18 18:17:34 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-18 14:54:05 -0600 |
commit | adc5a7cac283fab4b24f27c4cf1df911ced40346 (patch) | |
tree | 37db851ba30e91674343eb3696cd1951fb6b30a9 /WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift | |
parent | iOS: Tunnel edit: Add missing enum values (diff) | |
download | wireguard-apple-adc5a7cac283fab4b24f27c4cf1df911ced40346.tar.xz wireguard-apple-adc5a7cac283fab4b24f27c4cf1df911ced40346.zip |
iOS: Tunnels list: Ability to remove multiple tunnels at a time
Signed-off-by: Roopesh Chander <roop@roopc.net>
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 |