From 466db151b8da61c4758b790bf582e2755187358d Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Tue, 5 Feb 2019 16:15:43 +0530 Subject: macOS: Ensure fields are updated on saving Signed-off-by: Roopesh Chander --- .../UI/macOS/ViewController/TunnelDetailTableViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'WireGuard') 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() { -- cgit v1.2.3-59-g8ed1b