From: Roopesh Chander Date: Tue, 5 Feb 2019 10:45:43 +0000 (+0530) Subject: macOS: Ensure fields are updated on saving X-Git-Tag: 0.0.20190207-1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=466db151b8da61c4758b790bf582e2755187358d;p=thirdparty%2Fwireguard-apple.git macOS: Ensure fields are updated on saving Signed-off-by: Roopesh Chander --- 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() {