use radio icon for image placeholder for radio stations

This commit is contained in:
Drew Weymouth
2024-06-01 17:42:40 -07:00
parent 61f8dd00ff
commit b7af1e716c
11 changed files with 40 additions and 49 deletions
+5
View File
@@ -372,6 +372,11 @@ func (p *PlayQueueListRow) Update(tm *util.TrackListModel, rowNum int) {
// a new track (*mediaprovider.Track)
meta := tm.Item.Metadata()
if meta.ID != p.trackID {
if meta.Type == mediaprovider.MediaItemTypeRadioStation {
p.cover.PlaceholderIcon = myTheme.RadioIcon
} else {
p.cover.PlaceholderIcon = myTheme.TracksIcon
}
p.imageLoader.Load(meta.CoverArtID)
p.EnsureUnfocused()
p.trackID = meta.ID