aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-23 19:26:35 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-23 19:26:43 +0530
commit19f353127e665c7d426670dda72920b9e0f12792 (patch)
treead07c071d9ecddf20e8732a141bce4db6e7b0415 /WireGuard/WireGuard/UI
parentmacOS: Deactivate any active tunnel when app exits (diff)
downloadwireguard-apple-19f353127e665c7d426670dda72920b9e0f12792.tar.xz
wireguard-apple-19f353127e665c7d426670dda72920b9e0f12792.zip
macOS: Tunnel detail: Fix updation of tunnelEditVC
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
index 546d1c1f..6c3a0e98 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
@@ -270,6 +270,7 @@ extension TunnelDetailTableViewController: TunnelEditViewControllerDelegate {
func tunnelSaved(tunnel: TunnelContainer) {
tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration)
tableView.reloadData()
+ self.tunnelEditVC = nil
}
func tunnelEditingCancelled() {