mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 19:53:25 +01:00
[AltStore] Fixes frozen progress when refresh fails
This commit is contained in:
@@ -436,6 +436,14 @@ private extension MyAppsViewController
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.refresh([installedApp]) { (result) in
|
self.refresh([installedApp]) { (result) in
|
||||||
|
// If an error occured, reload the section so the progress bar is no longer visible.
|
||||||
|
if result.error != nil || result.value?.values.contains(where: { $0.error != nil }) == true
|
||||||
|
{
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.collectionView.reloadSections(IndexSet(integer: Section.installedApps.rawValue))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
print("Finished refreshing with result:", result.error?.localizedDescription ?? "success")
|
print("Finished refreshing with result:", result.error?.localizedDescription ?? "success")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user