aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-03-18 18:17:34 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-18 14:54:05 -0600
commitadc5a7cac283fab4b24f27c4cf1df911ced40346 (patch)
tree37db851ba30e91674343eb3696cd1951fb6b30a9 /WireGuard/WireGuard/UI/iOS/View/TunnelListCell.swift
parentiOS: Tunnel edit: Add missing enum values (diff)
downloadwireguard-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.swift5
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