aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-08 00:54:58 +0530
committerRoopesh Chander <roop@roopc.net>2018-12-08 02:17:23 +0530
commit06a783f50afcd2015c232906a320ca7edd04bbc2 (patch)
treeb6a9b57df49f0682e71eea20f702126592983f16 /WireGuard/WireGuard/UI/iOS
parentOn-Demand: Move detail text to TunnelViewModel (diff)
downloadwireguard-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 'WireGuard/WireGuard/UI/iOS')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
index c110d73..6b737fe 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
@@ -389,7 +389,7 @@ extension TunnelEditTableViewController {
if (isOn) {
s.activateOnDemandSetting.isActivateOnDemandEnabled = true
if (s.activateOnDemandSetting.activateOnDemandOption == .none) {
- s.activateOnDemandSetting.activateOnDemandOption = s.tunnelViewModel.defaultActivateOnDemandOption()
+ s.activateOnDemandSetting.activateOnDemandOption = TunnelViewModel.defaultActivateOnDemandOption()
}
s.tableView.insertRows(at: indexPaths, with: .automatic)
} else {
@@ -404,7 +404,7 @@ extension TunnelEditTableViewController {
let rowOption = activateOnDemandOptions[row - 1]
let selectedOption = activateOnDemandSetting.activateOnDemandOption
assert(selectedOption != .none)
- cell.message = tunnelViewModel.activateOnDemandOptionText(for: rowOption)
+ cell.message = TunnelViewModel.activateOnDemandOptionText(for: rowOption)
cell.isChecked = (selectedOption == rowOption)
return cell
}