mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
Prevent app grid from populating with empty cells during server info polling
This commit is contained in:
@@ -259,6 +259,7 @@ static NSMutableSet* hostList;
|
||||
|
||||
[_appManager stopRetrieving];
|
||||
_selectedHost = nil;
|
||||
_sortedAppList = nil;
|
||||
|
||||
self.title = @"Select Host";
|
||||
[self disableUpButton];
|
||||
@@ -1137,8 +1138,8 @@ static NSMutableSet* hostList;
|
||||
}
|
||||
|
||||
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
|
||||
if (_selectedHost != nil) {
|
||||
return _selectedHost.appList.count;
|
||||
if (_selectedHost != nil && _sortedAppList != nil) {
|
||||
return _sortedAppList.count;
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user