use disabled list to avoid builtin focus handling

This commit is contained in:
Drew Weymouth
2023-11-02 19:24:52 -07:00
parent af95d150e8
commit b24321ee40
6 changed files with 51 additions and 18 deletions
+2 -2
View File
@@ -217,7 +217,7 @@ type GenreFilterSubsection struct {
noneBtn *widget.Button
listModelMutex sync.RWMutex
genreListViewModel []string
genreListView *widget.List
genreListView *DisabledList
container *fyne.Container
}
@@ -233,7 +233,7 @@ func NewGenreFilterSubsection(onChanged func([]string), initialSelectedGenres []
g.selectedGenres[genre] = nil
}
g.genreListView = widget.NewList(
g.genreListView = NewDisabledList(
func() int {
g.listModelMutex.RLock()
defer g.listModelMutex.RUnlock()