fix some interface assertion and nil bugs, and album page not showing now playing
This commit is contained in:
@@ -273,6 +273,9 @@ func (a *NowPlayingPage) onImageLoaded(img image.Image, err error) {
|
||||
log.Printf("error loading cover art: %v\n", err)
|
||||
return
|
||||
}
|
||||
if img == nil {
|
||||
return
|
||||
}
|
||||
a.card.SetCoverImage(img)
|
||||
c := dominantcolor.Find(img)
|
||||
if c == a.background.StartColor {
|
||||
|
||||
Reference in New Issue
Block a user