let Ctrl+A select all tracks on favorites page w/ track view active
This commit is contained in:
@@ -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) {
|
func (a *FavoritesPage) doSearchAlbums(query string) {
|
||||||
iter := a.lm.SearchIterWithFilter(query, func(al *subsonic.AlbumID3) bool {
|
iter := a.lm.SearchIterWithFilter(query, func(al *subsonic.AlbumID3) bool {
|
||||||
return al.Starred.After(time.Time{})
|
return al.Starred.After(time.Time{})
|
||||||
|
|||||||
Reference in New Issue
Block a user