add cache warming for album covers to album iterators

This commit is contained in:
Drew Weymouth
2023-01-07 16:24:18 -08:00
parent 5722c18d36
commit 584a160809
7 changed files with 55 additions and 21 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (a *ArtistPage) loadAsync() {
}
a.titleDisp.Segments[0].(*widget.TextSegment).Text = artist.Name
a.titleDisp.Refresh()
ag := widgets.NewFixedAlbumGrid(artist.Album, a.im.GetAlbumThumbnail, true /*showYear*/)
ag := widgets.NewFixedAlbumGrid(artist.Album, a.im, true /*showYear*/)
ag.OnPlayAlbum = a.onPlayAlbum
ag.OnShowAlbumPage = a.onShowAlbumPage
a.container.Objects[0] = ag