macOS: Ensure fields are updated on saving

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-02-05 16:15:43 +05:30
parent 1be133f269
commit 466db151b8
1 changed files with 3 additions and 1 deletions

View File

@ -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() {