diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-05 18:24:45 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-14 14:52:33 +0530 |
commit | f3c29042418942f9e07281aefbc67360ebc4366f (patch) | |
tree | 14eda4b4b07dee8eb75b47afc3f64b850055458f /WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift | |
parent | macOS: Present tunnel activation errors from the window when possible (diff) | |
download | wireguard-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.swift | 5 |
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) } } |