add option to show album years in grid views
This commit is contained in:
@@ -68,7 +68,7 @@ func (a *artistsPageAdapter) SearchIter(query string, filter mediaprovider.Artis
|
||||
return widgets.NewGridViewArtistIterator(a.mp.SearchArtists(query, filter))
|
||||
}
|
||||
|
||||
func (a *artistsPageAdapter) ConnectGridActions(gv *widgets.GridView) {
|
||||
func (a *artistsPageAdapter) InitGrid(gv *widgets.GridView) {
|
||||
canShareArtists := false
|
||||
if r, canShare := a.mp.(mediaprovider.SupportsSharing); canShare {
|
||||
canShareArtists = r.CanShareArtists()
|
||||
@@ -76,3 +76,7 @@ func (a *artistsPageAdapter) ConnectGridActions(gv *widgets.GridView) {
|
||||
gv.DisableSharing = !canShareArtists
|
||||
a.contr.ConnectArtistGridActions(gv)
|
||||
}
|
||||
|
||||
func (a *artistsPageAdapter) RefreshGrid(gv *widgets.GridView) {
|
||||
gv.Refresh()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user