aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-02-05 16:15:43 +0530
committerRoopesh Chander <roop@roopc.net>2019-02-05 16:15:43 +0530
commit466db151b8da61c4758b790bf582e2755187358d (patch)
treec270ce2102b255d668f623a808c12e2d85d024d5 /WireGuard/WireGuard/UI/macOS
parentiOS: Ensure fields are updated on saving (diff)
downloadwireguard-apple-466db151b8da61c4758b790bf582e2755187358d.tar.xz
wireguard-apple-466db151b8da61c4758b790bf582e2755187358d.zip
macOS: Ensure fields are updated on saving
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift4
1 files changed, 3 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
index d6be9081..89dcbe8c 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
@@ -399,9 +399,11 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
extension TunnelDetailTableViewController: TunnelEditViewControllerDelegate {
func tunnelSaved(tunnel: TunnelContainer) {
tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration)
+ updateTableViewModelRowsBySection()
+ updateTableViewModelRows()
+ updateStatus()
tableView.reloadData()
self.tunnelEditVC = nil
- updateStatus()
}
func tunnelEditingCancelled() {