mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 19:23:43 +01:00
[AltStore] Improves app installation cancellation/progress tracking
This commit is contained in:
@@ -23,7 +23,14 @@ class ResultOperation<ResultType>: Operation
|
||||
{
|
||||
guard !self.isFinished else { return }
|
||||
|
||||
self.resultHandler?(result)
|
||||
if self.isCancelled
|
||||
{
|
||||
self.resultHandler?(.failure(OperationError.cancelled))
|
||||
}
|
||||
else
|
||||
{
|
||||
self.resultHandler?(result)
|
||||
}
|
||||
|
||||
super.finish()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user