diff options
author | Eric Kuck <eric@bluelinelabs.com> | 2018-12-14 21:48:48 -0600 |
---|---|---|
committer | Eric Kuck <eric@bluelinelabs.com> | 2018-12-14 21:48:48 -0600 |
commit | 5a08c67f335c905f15f6e79d346105e5a13bac80 (patch) | |
tree | a2e2b0fb2e2c4849f6dab51a69d2a1da6ebc05ef /WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift | |
parent | Fix confusing indentation (diff) | |
download | wireguard-apple-5a08c67f335c905f15f6e79d346105e5a13bac80.tar.xz wireguard-apple-5a08c67f335c905f15f6e79d346105e5a13bac80.zip |
Fixed editable KeyValueCells being copyable
Fixed DNS servers not saving
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift index a9e2139..4ba0cb0 100644 --- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift @@ -246,7 +246,6 @@ extension TunnelEditTableViewController { // Bind values to view model cell.value = tunnelViewModel.interfaceData[field] if field == .dns { // While editing DNS, you might directly set exclude private IPs - cell.onValueChanged = nil cell.onValueBeingEdited = { [weak self] value in self?.tunnelViewModel.interfaceData[field] = value } @@ -254,7 +253,6 @@ extension TunnelEditTableViewController { cell.onValueChanged = { [weak self] value in self?.tunnelViewModel.interfaceData[field] = value } - cell.onValueBeingEdited = nil } // Compute public key live if field == .privateKey { @@ -266,8 +264,6 @@ extension TunnelEditTableViewController { self.tableView.reloadRows(at: [IndexPath(row: row, section: indexPath.section)], with: .none) } } - } else { - cell.onValueBeingEdited = nil } return cell } |