diff options
author | Roopesh Chander <roop@roopc.net> | 2019-02-05 16:15:43 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-02-05 16:15:43 +0530 |
commit | 466db151b8da61c4758b790bf582e2755187358d (patch) | |
tree | c270ce2102b255d668f623a808c12e2d85d024d5 /WireGuard/WireGuard/UI/macOS/ViewController | |
parent | iOS: Ensure fields are updated on saving (diff) | |
download | wireguard-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.swift | 4 |
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 d6be908..89dcbe8 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() { |