mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Changes MyAppsViewController.noAppsDataSource to non-prefetching data source
This commit is contained in:
@@ -181,9 +181,9 @@ private extension MyAppsViewController
|
||||
return dataSource
|
||||
}
|
||||
|
||||
func makeNoUpdatesDataSource() -> RSTDynamicCollectionViewPrefetchingDataSource<InstalledApp, UIImage>
|
||||
func makeNoUpdatesDataSource() -> RSTDynamicCollectionViewDataSource<InstalledApp>
|
||||
{
|
||||
let dynamicDataSource = RSTDynamicCollectionViewPrefetchingDataSource<InstalledApp, UIImage>()
|
||||
let dynamicDataSource = RSTDynamicCollectionViewDataSource<InstalledApp>()
|
||||
dynamicDataSource.numberOfSectionsHandler = { 1 }
|
||||
dynamicDataSource.numberOfItemsHandler = { _ in self.updatesDataSource.itemCount == 0 ? 1 : 0 }
|
||||
dynamicDataSource.cellIdentifierHandler = { _ in "NoUpdatesCell" }
|
||||
|
||||
Reference in New Issue
Block a user