aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-05 18:24:45 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:33 +0530
commitf3c29042418942f9e07281aefbc67360ebc4366f (patch)
tree14eda4b4b07dee8eb75b47afc3f64b850055458f /WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
parentmacOS: Present tunnel activation errors from the window when possible (diff)
downloadwireguard-apple-f3c29042418942f9e07281aefbc67360ebc4366f.tar.xz
wireguard-apple-f3c29042418942f9e07281aefbc67360ebc4366f.zip
macOS: Manage tunnels: Handle the case when there are no tunnels
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift5
1 files changed, 3 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
index c951b45..1b1dc73 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
@@ -82,7 +82,8 @@ extension ManageTunnelsRootViewController: TunnelsListTableViewControllerDelegat
setTunnelDetailContentVC(tunnelDetailVC)
}
- func tunnelListEmpty() {
- // TODO
+ func tunnelsListEmpty() {
+ let noTunnelsVC = NoTunnelsDetailViewController(tunnelsManager: tunnelsManager)
+ setTunnelDetailContentVC(noTunnelsVC)
}
}