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
@@ -289,7 +289,7 @@ type PlaylistList struct {
columnsLayout *layouts.ColumnsLayout
header *widgets.ListHeader
list *widget.List
list *widgets.DisabledList
container *fyne.Container
}
@@ -299,7 +299,7 @@ func NewPlaylistList(initialSort widgets.ListHeaderSort) *PlaylistList {
columnsLayout: layouts.NewColumnsLayout([]float32{-1, -1, 200, 125}),
}
a.buildHeader()
a.list = widget.NewList(
a.list = widgets.NewDisabledList(
func() int {
return len(a.playlists)
},