macOS: Ensure fields are updated on saving
This commit is contained in:
parent
1ae8e6228f
commit
6838d19599
|
@ -399,9 +399,11 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
|
||||||
extension TunnelDetailTableViewController: TunnelEditViewControllerDelegate {
|
extension TunnelDetailTableViewController: TunnelEditViewControllerDelegate {
|
||||||
func tunnelSaved(tunnel: TunnelContainer) {
|
func tunnelSaved(tunnel: TunnelContainer) {
|
||||||
tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration)
|
tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration)
|
||||||
|
updateTableViewModelRowsBySection()
|
||||||
|
updateTableViewModelRows()
|
||||||
|
updateStatus()
|
||||||
tableView.reloadData()
|
tableView.reloadData()
|
||||||
self.tunnelEditVC = nil
|
self.tunnelEditVC = nil
|
||||||
updateStatus()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func tunnelEditingCancelled() {
|
func tunnelEditingCancelled() {
|
||||||
|
|
Loading…
Reference in New Issue