From 35561336c607226e6389ff3e820a07afbfa69810 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 21 Nov 2022 17:01:24 -0600 Subject: [PATCH] Fixes delay updating UI after cancelling installing app --- AltStore/Operations/OperationContexts.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AltStore/Operations/OperationContexts.swift b/AltStore/Operations/OperationContexts.swift index e60178b3..48e1741c 100644 --- a/AltStore/Operations/OperationContexts.swift +++ b/AltStore/Operations/OperationContexts.swift @@ -75,6 +75,13 @@ class AppOperationContext } set { _error = newValue + + if self.authenticatedContext.error == nil + { + // Assign newValue to authenticatedContext.error if the latter is nil. + // This fixes some operations continuing even after an error has occured. + self.authenticatedContext.error = newValue + } } } private var _error: Error?