search now works correctly!

This commit is contained in:
Drew Weymouth
2022-12-27 15:14:46 -08:00
parent fc858e1024
commit 7d0fcc78b2
5 changed files with 114 additions and 38 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package ui
import (
"context"
"fmt"
"image"
"supersonic/backend"
"supersonic/ui/widgets"
@@ -85,7 +84,6 @@ func (ag *AlbumGrid) doUpdateAlbumCard(albumIdx int, ac *widgets.AlbumCard) {
return
default:
if err == nil {
fmt.Println("setting image")
ac.Cover.SetImage(i)
ag.Refresh()
}
@@ -115,6 +113,7 @@ func (a *AlbumGrid) fetchMoreAlbums(count int) {
if i == count {
a.fetching = false
}
a.Refresh()
})
}