mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Fixes erroneously showing “Unsupported Updates Available” message
This commit is contained in:
@@ -347,6 +347,15 @@ extension AppManager
|
||||
}
|
||||
}
|
||||
|
||||
func fetchSources() async throws -> (Set<Source>, NSManagedObjectContext)
|
||||
{
|
||||
try await withCheckedThrowingContinuation { continuation in
|
||||
self.fetchSources { result in
|
||||
continuation.resume(with: result)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func add(@AsyncManaged _ source: Source, message: String? = nil, presentingViewController: UIViewController) async throws
|
||||
{
|
||||
let (sourceName, sourceURL) = await $source.perform { ($0.name, $0.sourceURL) }
|
||||
@@ -422,6 +431,7 @@ extension AppManager
|
||||
self.run([fetchSourceOperation], context: nil)
|
||||
}
|
||||
|
||||
@available(*, renamed: "fetchSources")
|
||||
func fetchSources(completionHandler: @escaping (Result<(Set<Source>, NSManagedObjectContext), FetchSourcesError>) -> Void)
|
||||
{
|
||||
DatabaseManager.shared.persistentContainer.performBackgroundTask { (context) in
|
||||
|
||||
Reference in New Issue
Block a user