add disabling of sorting where appropriate

This commit is contained in:
Drew Weymouth
2023-05-23 11:10:43 -07:00
parent 1f3559de43
commit 137e0334e0
5 changed files with 23 additions and 6 deletions
+1
View File
@@ -66,6 +66,7 @@ func NewArtistGenreList(items []ArtistGenreListItemModel) *ArtistGenreList {
a.ExtendBaseWidget(a)
a.hdr = NewListHeader([]ListColumn{
{"Name", false, false}, {"Album Count", true, false}, {"Track Count", true, false}}, a.columnsLayout)
a.hdr.DisableSorting = true
a.list = widget.NewList(
func() int { return len(a.Items) },
func() fyne.CanvasObject {