add Shuffle context menu item to tracklist; unselect tracks on Favorites page by clicking outside

This commit is contained in:
Drew Weymouth
2023-05-13 16:47:15 -07:00
parent 4c6d6eb162
commit 2083af3935
3 changed files with 16 additions and 4 deletions
+6
View File
@@ -132,6 +132,12 @@ func (a *FavoritesPage) Route() controller.Route {
return controller.FavoritesRoute()
}
func (a *FavoritesPage) Tapped(*fyne.PointEvent) {
if a.tracklistCtr != nil {
a.tracklistCtr.Objects[0].(*widgets.Tracklist).UnselectAll()
}
}
func (a *FavoritesPage) Reload() {
// reload favorite albums view
if a.searchText != "" {