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
parent 1a4b2fd74e
commit d0609b0269
2 changed files with 4 additions and 1 deletions

View File

@@ -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 {

View File

@@ -57,6 +57,7 @@ class BackgroundRefreshAppsOperation: ResultOperation<[String: Result<InstalledA
private let managedObjectContext: NSManagedObjectContext private let managedObjectContext: NSManagedObjectContext
var presentsFinishedNotification: Bool = true 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> = []
@@ -214,7 +215,7 @@ private extension BackgroundRefreshAppsOperation
{ {
shouldPresentAlert = false shouldPresentAlert = false
} }
catch ~OperationError.Code.serverNotFound catch ~OperationError.Code.serverNotFound where self.ignoresServerNotFoundError
{ {
shouldPresentAlert = false shouldPresentAlert = false
} }