aboutsummaryrefslogtreecommitdiffstats
path: root/Sources/WireGuardApp/UI/macOS/AppDelegate.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/WireGuardApp/UI/macOS/AppDelegate.swift')
-rw-r--r--Sources/WireGuardApp/UI/macOS/AppDelegate.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/Sources/WireGuardApp/UI/macOS/AppDelegate.swift b/Sources/WireGuardApp/UI/macOS/AppDelegate.swift
index f1ed4cd..38950ed 100644
--- a/Sources/WireGuardApp/UI/macOS/AppDelegate.swift
+++ b/Sources/WireGuardApp/UI/macOS/AppDelegate.swift
@@ -3,6 +3,7 @@
import Cocoa
import ServiceManagement
+import AppIntents
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
@@ -58,6 +59,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
self.tunnelsTracker = tunnelsTracker
self.statusItemController = statusItemController
+ if #available(macOS 13.0, *) {
+ AppDependencyManager.shared.add(dependency: tunnelsManager)
+ }
+
if !isLaunchedAtLogin {
self.showManageTunnelsWindow(completion: nil)
}