mirror of
https://github.com/SideStore/SideStore.git
synced 2026-03-27 12:55:40 +01:00
bug-fix: ensure main thread when using UIApplication.shared
This commit is contained in:
@@ -45,11 +45,13 @@ final class SendAppOperation: ResultOperation<()>
|
|||||||
print("AFC App `fileURL`: \(fileURL.absoluteString)")
|
print("AFC App `fileURL`: \(fileURL.absoluteString)")
|
||||||
|
|
||||||
// Wait for Shortcut to Finish Before Proceeding
|
// Wait for Shortcut to Finish Before Proceeding
|
||||||
UIApplication.shared.open(shortcutURLoff, options: [:]) { _ in
|
DispatchQueue.main.async {
|
||||||
print("Shortcut finished execution. Proceeding with file transfer.")
|
UIApplication.shared.open(shortcutURLoff, options: [:]) { _ in
|
||||||
|
print("Shortcut finished execution. Proceeding with file transfer.")
|
||||||
|
|
||||||
DispatchQueue.global().async {
|
DispatchQueue.global().async {
|
||||||
self.processFile(at: fileURL, for: app.bundleIdentifier)
|
self.processFile(at: fileURL, for: app.bundleIdentifier)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user