]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
iOS: Ensure fields are updated on saving
authorRoopesh Chander <roop@roopc.net>
Tue, 5 Feb 2019 10:24:23 +0000 (15:54 +0530)
committerRoopesh Chander <roop@roopc.net>
Tue, 5 Feb 2019 10:24:23 +0000 (15:54 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift

index 31ad111296a2c23aa15241bfaf4b44c3bd5c5ecf..955bf91e09e2b2bd7dbdda71c0b85c8241804ae0 100644 (file)
@@ -220,6 +220,7 @@ extension TunnelDetailTableViewController: TunnelEditTableViewControllerDelegate
     func tunnelSaved(tunnel: TunnelContainer) {
         tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration)
         loadSections()
+        loadVisibleFields()
         title = tunnel.name
         restorationIdentifier = "TunnelDetailVC:\(tunnel.name)"
         tableView.reloadData()