mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Correctly handles RefreshAllIntent exceeding time limit
• Responds with “inProgress” status if exceeding time limit • Displays native AltStore notification only if time limit is exceeded
This commit is contained in:
@@ -645,12 +645,15 @@ extension AppManager
|
||||
|
||||
extension AppManager
|
||||
{
|
||||
func backgroundRefresh(_ installedApps: [InstalledApp], presentsNotifications: Bool = true, completionHandler: @escaping (Result<[String: Result<InstalledApp, Error>], Error>) -> Void)
|
||||
@discardableResult
|
||||
func backgroundRefresh(_ installedApps: [InstalledApp], presentsNotifications: Bool = true, completionHandler: @escaping (Result<[String: Result<InstalledApp, Error>], Error>) -> Void) -> BackgroundRefreshAppsOperation
|
||||
{
|
||||
let backgroundRefreshAppsOperation = BackgroundRefreshAppsOperation(installedApps: installedApps)
|
||||
backgroundRefreshAppsOperation.resultHandler = completionHandler
|
||||
backgroundRefreshAppsOperation.presentsFinishedNotification = presentsNotifications
|
||||
self.run([backgroundRefreshAppsOperation], context: nil)
|
||||
|
||||
return backgroundRefreshAppsOperation
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user