aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/AppDelegate.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-29 15:33:41 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:30 +0530
commit545f8c88f4d3b12945aebe3849d89233f6e7051f (patch)
treec2ef28c1753554ededf96b214eb6d7ebe42483ed /WireGuard/WireGuard/UI/macOS/AppDelegate.swift
parentiOS: Refactor importFromFile (diff)
downloadwireguard-apple-545f8c88f4d3b12945aebe3849d89233f6e7051f.tar.xz
wireguard-apple-545f8c88f4d3b12945aebe3849d89233f6e7051f.zip
macOS: Ability to import tunnels from file
For now, the open panel shows as a separate window. Later, we'll open it as a sheet on the 'Manage tunnels' window. Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/AppDelegate.swift')
-rw-r--r--WireGuard/WireGuard/UI/macOS/AppDelegate.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/AppDelegate.swift b/WireGuard/WireGuard/UI/macOS/AppDelegate.swift
index ba3e902f..970e56d2 100644
--- a/WireGuard/WireGuard/UI/macOS/AppDelegate.swift
+++ b/WireGuard/WireGuard/UI/macOS/AppDelegate.swift
@@ -16,6 +16,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
let tunnelsManager: TunnelsManager = result.value!
let statusMenu = StatusMenu(tunnelsManager: tunnelsManager)
self.statusItem = createStatusBarItem(with: statusMenu)
+
+ tunnelsManager.tunnelsListDelegate = statusMenu
}
}
}