diff options
Diffstat (limited to 'Sources/WireGuardApp/UI/iOS/View/SwitchCell.swift')
-rw-r--r-- | Sources/WireGuardApp/UI/iOS/View/SwitchCell.swift | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/View/SwitchCell.swift b/Sources/WireGuardApp/UI/iOS/View/SwitchCell.swift index 9bdc345..3952ffd 100644 --- a/Sources/WireGuardApp/UI/iOS/View/SwitchCell.swift +++ b/Sources/WireGuardApp/UI/iOS/View/SwitchCell.swift @@ -26,7 +26,9 @@ class SwitchCell: UITableViewCell { var onSwitchToggled: ((Bool) -> Void)? - var observationToken: AnyObject? + var statusObservationToken: AnyObject? + var isOnDemandEnabledObservationToken: AnyObject? + var hasOnDemandRulesObservationToken: AnyObject? let switchView = UISwitch() @@ -51,6 +53,8 @@ class SwitchCell: UITableViewCell { isEnabled = true message = "" isOn = false - observationToken = nil + statusObservationToken = nil + isOnDemandEnabledObservationToken = nil + hasOnDemandRulesObservationToken = nil } } |