mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 19:53:25 +01:00
Fixes not showing “AltServer Not Found” error when refreshing via widget
This commit is contained in:
@@ -181,6 +181,8 @@ private extension RefreshAllAppsIntent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operation.ignoresServerNotFoundError = false
|
||||||
|
|
||||||
self.progress.addChild(operation.progress, withPendingUnitCount: 1)
|
self.progress.addChild(operation.progress, withPendingUnitCount: 1)
|
||||||
|
|
||||||
Task {
|
Task {
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ final class BackgroundRefreshAppsOperation: ResultOperation<[String: Result<Inst
|
|||||||
let installedApps: [InstalledApp]
|
let installedApps: [InstalledApp]
|
||||||
private let managedObjectContext: NSManagedObjectContext
|
private let managedObjectContext: NSManagedObjectContext
|
||||||
|
|
||||||
var presentsFinishedNotification: Bool = false
|
var presentsFinishedNotification: Bool = true
|
||||||
|
var ignoresServerNotFoundError: Bool = true
|
||||||
|
|
||||||
private let refreshIdentifier: String = UUID().uuidString
|
private let refreshIdentifier: String = UUID().uuidString
|
||||||
private var runningApplications: Set<String> = []
|
private var runningApplications: Set<String> = []
|
||||||
@@ -225,7 +226,7 @@ private extension BackgroundRefreshAppsOperation
|
|||||||
{
|
{
|
||||||
shouldPresentAlert = false
|
shouldPresentAlert = false
|
||||||
}
|
}
|
||||||
catch ~OperationError.Code.serverNotFound
|
catch ~OperationError.Code.serverNotFound where self.ignoresServerNotFoundError
|
||||||
{
|
{
|
||||||
shouldPresentAlert = false
|
shouldPresentAlert = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user