Fixes not showing “AltServer Not Found” error when refreshing via widget

This commit is contained in:
Riley Testut
2023-09-08 16:05:56 -05:00
committed by Magesh K
parent fa01fa708e
commit a1865b6725
2 changed files with 5 additions and 2 deletions

View File

@@ -181,6 +181,8 @@ private extension RefreshAllAppsIntent
}
}
operation.ignoresServerNotFoundError = false
self.progress.addChild(operation.progress, withPendingUnitCount: 1)
Task {

View File

@@ -58,7 +58,8 @@ final class BackgroundRefreshAppsOperation: ResultOperation<[String: Result<Inst
let installedApps: [InstalledApp]
private let managedObjectContext: NSManagedObjectContext
var presentsFinishedNotification: Bool = false
var presentsFinishedNotification: Bool = true
var ignoresServerNotFoundError: Bool = true
private let refreshIdentifier: String = UUID().uuidString
private var runningApplications: Set<String> = []
@@ -225,7 +226,7 @@ private extension BackgroundRefreshAppsOperation
{
shouldPresentAlert = false
}
catch ~OperationError.Code.serverNotFound
catch ~OperationError.Code.serverNotFound where self.ignoresServerNotFoundError
{
shouldPresentAlert = false
}