diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-29 15:33:41 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-14 14:52:30 +0530 |
commit | 545f8c88f4d3b12945aebe3849d89233f6e7051f (patch) | |
tree | c2ef28c1753554ededf96b214eb6d7ebe42483ed /WireGuard/WireGuard/UI/macOS/AppDelegate.swift | |
parent | iOS: Refactor importFromFile (diff) | |
download | wireguard-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.swift | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/AppDelegate.swift b/WireGuard/WireGuard/UI/macOS/AppDelegate.swift index ba3e902..970e56d 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 } } } |