From a1865b6725c6448d1f4d45f25af3f57be0562fa8 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Fri, 8 Sep 2023 16:05:56 -0500 Subject: [PATCH] =?UTF-8?q?Fixes=20not=20showing=20=E2=80=9CAltServer=20No?= =?UTF-8?q?t=20Found=E2=80=9D=20error=20when=20refreshing=20via=20widget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AltStore/Intents/App Intents/RefreshAllAppsIntent.swift | 2 ++ AltStore/Operations/BackgroundRefreshAppsOperation.swift | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/AltStore/Intents/App Intents/RefreshAllAppsIntent.swift b/AltStore/Intents/App Intents/RefreshAllAppsIntent.swift index eb7d19fd..6b357eb7 100644 --- a/AltStore/Intents/App Intents/RefreshAllAppsIntent.swift +++ b/AltStore/Intents/App Intents/RefreshAllAppsIntent.swift @@ -181,6 +181,8 @@ private extension RefreshAllAppsIntent } } + operation.ignoresServerNotFoundError = false + self.progress.addChild(operation.progress, withPendingUnitCount: 1) Task { diff --git a/AltStore/Operations/BackgroundRefreshAppsOperation.swift b/AltStore/Operations/BackgroundRefreshAppsOperation.swift index f65c6b8a..4db66a87 100644 --- a/AltStore/Operations/BackgroundRefreshAppsOperation.swift +++ b/AltStore/Operations/BackgroundRefreshAppsOperation.swift @@ -58,7 +58,8 @@ final class BackgroundRefreshAppsOperation: ResultOperation<[String: Result = [] @@ -225,7 +226,7 @@ private extension BackgroundRefreshAppsOperation { shouldPresentAlert = false } - catch ~OperationError.Code.serverNotFound + catch ~OperationError.Code.serverNotFound where self.ignoresServerNotFoundError { shouldPresentAlert = false }