Skip to content

Commit

Permalink
Maybe works correctly now?
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Jan 12, 2024
1 parent b6579c6 commit 373c0c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TrollStore/TSAppTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
_cachedIcons[appId] = iconImage;
dispatch_async(dispatch_get_main_queue(), ^{
NSIndexPath *curIndexPath = [NSIndexPath indexPathForRow:[_cachedAppInfos indexOfObject:appInfo] inSection:0];
if([tableView.indexPathsForVisibleRows containsObject:curIndexPath])
UITableViewCell *curCell = [tableView cellForRowAtIndexPath:curIndexPath];
if(curCell)
{
UITableViewCell *curCell = [tableView cellForRowAtIndexPath:curIndexPath];
curCell.imageView.image = iconImage;
[curCell setNeedsLayout];
}
Expand Down

0 comments on commit 373c0c6

Please sign in to comment.