aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-09 01:17:46 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:35 +0530
commit922b6f76b21d0c2b270fbe5a4743d28977cfe02e (patch)
treeaf1ab2cb29ae82f69534c305a0b23f3ebaaac7d9 /WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
parentmacOS: Update detail view after editing (diff)
downloadwireguard-apple-922b6f76b21d0c2b270fbe5a4743d28977cfe02e.tar.xz
wireguard-apple-922b6f76b21d0c2b270fbe5a4743d28977cfe02e.zip
macOS: Manage tunnels: Add empty tunnel pulldown menu implementation
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift3
1 files changed, 2 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
index 723814ed..162cf154 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() {