Browse Source

macosx: Do not apply thumbnail for album in album table cell view if the view's represented album changed

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
pull/175/head
Claudio Cambra 1 year ago
committed by Steve Lhomme
parent
commit
75fba7a30e
  1. 3
      modules/gui/macosx/library/audio-library/VLCLibraryAlbumTableCellView.m

3
modules/gui/macosx/library/audio-library/VLCLibraryAlbumTableCellView.m

@ -328,6 +328,9 @@ const CGFloat VLCLibraryAlbumTableCellViewDefaultHeight = 168.;
}
[VLCLibraryImageCache thumbnailForLibraryItem:album withCompletion:^(NSImage * const thumbnail) {
if (self.representedItem.item != album) {
return;
}
self.representedImageView.image = thumbnail;
}];

Loading…
Cancel
Save