diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-08 00:54:58 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-08 02:17:23 +0530 |
commit | 06a783f50afcd2015c232906a320ca7edd04bbc2 (patch) | |
tree | b6a9b57df49f0682e71eea20f702126592983f16 /WireGuard/WireGuard/UI/TunnelViewModel.swift | |
parent | On-Demand: Move detail text to TunnelViewModel (diff) | |
download | wireguard-apple-06a783f50afcd2015c232906a320ca7edd04bbc2.tar.xz wireguard-apple-06a783f50afcd2015c232906a320ca7edd04bbc2.zip |
On-Demand: TunnelViewModel: Make activate-on-demand methods static
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/TunnelViewModel.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift index 2a3f36b..de14ad5 100644 --- a/WireGuard/WireGuard/UI/TunnelViewModel.swift +++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift @@ -451,7 +451,7 @@ class TunnelViewModel { // MARK: Activate on demand extension TunnelViewModel { - func activateOnDemandOptionText(for activateOnDemandOption: ActivateOnDemandOption) -> String { + static func activateOnDemandOptionText(for activateOnDemandOption: ActivateOnDemandOption) -> String { switch (activateOnDemandOption) { case .none: return "Off" @@ -476,7 +476,7 @@ extension TunnelViewModel { } } - func defaultActivateOnDemandOption() -> ActivateOnDemandOption { + static func defaultActivateOnDemandOption() -> ActivateOnDemandOption { return .useOnDemandOverWiFiOrCellular } |