From 922b6f76b21d0c2b270fbe5a4743d28977cfe02e Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Wed, 9 Jan 2019 01:17:46 +0530 Subject: macOS: Manage tunnels: Add empty tunnel pulldown menu implementation Signed-off-by: Roopesh Chander --- .../UI/macOS/ViewController/TunnelsListTableViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift') diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift index 723814e..162cf15 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift @@ -127,7 +127,8 @@ class TunnelsListTableViewController: NSViewController { } @objc func addEmptyTunnelClicked() { - print("addEmptyTunnelClicked") + let tunnelEditVC = TunnelEditViewController(tunnelsManager: tunnelsManager, tunnel: nil) + presentAsSheet(tunnelEditVC) } @objc func importTunnelClicked() { -- cgit v1.2.3-59-g8ed1b