@@ -12,7 +12,7 @@ class DeepLinks {
12
12
static let shared = DeepLinks ( )
13
13
private init ( ) { }
14
14
15
- func handleDeepLink( _ url: URL , context: ModelContext , sessionManager: SessionManager , previewStateManager: PreviewStateManager , selectedTab: Binding < TabViewWindow . Tab > , hasExistingSessions: Binding < Bool > , showingServerConfirmation: Binding < Bool > , pendingAuthURL: Binding < URL ? > , pendingAuthSignature: Binding < String ? > ) {
15
+ @ MainActor func handleDeepLink( _ url: URL , context: ModelContext , sessionManager: SessionManager , previewStateManager: PreviewStateManager , selectedTab: Binding < TabViewWindow . Tab > , hasExistingSessions: Binding < Bool > , showingServerConfirmation: Binding < Bool > , pendingAuthURL: Binding < URL ? > , pendingAuthSignature: Binding < String ? > ) {
16
16
print ( " Deep link received: \( url) " )
17
17
guard url. scheme == " djangofiles " else { return }
18
18
@@ -36,7 +36,7 @@ class DeepLinks {
36
36
}
37
37
}
38
38
39
- private func handlePreviewLink( _ components: URLComponents , context: ModelContext , sessionManager: SessionManager , previewStateManager: PreviewStateManager , selectedTab: Binding < TabViewWindow . Tab > ) {
39
+ @ MainActor private func handlePreviewLink( _ components: URLComponents , context: ModelContext , sessionManager: SessionManager , previewStateManager: PreviewStateManager , selectedTab: Binding < TabViewWindow . Tab > ) {
40
40
print ( " 🔍 Handling preview deep link with components: \( components) " )
41
41
42
42
guard let urlString = components. queryItems? . first ( where: { $0. name == " url " } ) ? . value? . removingPercentEncoding,
@@ -128,7 +128,7 @@ class DeepLinks {
128
128
}
129
129
}
130
130
131
- private func handleFileListDeepLink( _ components: URLComponents , context: ModelContext , sessionManager: SessionManager , selectedTab: Binding < TabViewWindow . Tab > ) {
131
+ @ MainActor private func handleFileListDeepLink( _ components: URLComponents , context: ModelContext , sessionManager: SessionManager , selectedTab: Binding < TabViewWindow . Tab > ) {
132
132
guard let urlString = components. queryItems? . first ( where: { $0. name == " url " } ) ? . value? . removingPercentEncoding,
133
133
let serverURL = URL ( string: urlString) else {
134
134
print ( " Invalid server URL in filelist deep link " )
@@ -154,7 +154,7 @@ class DeepLinks {
154
154
}
155
155
}
156
156
157
- private func deepLinkAuth( _ components: URLComponents , context: ModelContext , sessionManager: SessionManager , hasExistingSessions: Binding < Bool > , showingServerConfirmation: Binding < Bool > , pendingAuthURL: Binding < URL ? > , pendingAuthSignature: Binding < String ? > ) {
157
+ @ MainActor private func deepLinkAuth( _ components: URLComponents , context: ModelContext , sessionManager: SessionManager , hasExistingSessions: Binding < Bool > , showingServerConfirmation: Binding < Bool > , pendingAuthURL: Binding < URL ? > , pendingAuthSignature: Binding < String ? > ) {
158
158
guard let signature = components. queryItems? . first ( where: { $0. name == " signature " } ) ? . value? . removingPercentEncoding,
159
159
let serverURL = URL ( string: components. queryItems? . first ( where: { $0. name == " url " } ) ? . value? . removingPercentEncoding ?? " " ) else {
160
160
print ( " Unable to parse auth deep link. " )
0 commit comments