Skip to content

Commit

Permalink
let Ctrl+A select all tracks on favorites page w/ track view active
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed May 11, 2023
1 parent 5634dfc commit c97edef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/browsing/favoritespage.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ func (a *FavoritesPage) OnSongChange(song *subsonic.Child, _ *subsonic.Child) {
}
}

var _ CanSelectAll = (*FavoritesPage)(nil)

func (a *FavoritesPage) SelectAll() {
if a.toggleBtns.ActivatedButtonIndex() == 2 /*songs*/ && a.tracklistCtr != nil {
a.tracklistCtr.Objects[0].(*widgets.Tracklist).SelectAll()
}
}

func (a *FavoritesPage) doSearchAlbums(query string) {
iter := a.lm.SearchIterWithFilter(query, func(al *subsonic.AlbumID3) bool {
return al.Starred.After(time.Time{})
Expand Down

0 comments on commit c97edef

Please sign in to comment.