add select all support to new NowPlaying page

This commit is contained in:
Drew Weymouth
2024-03-03 13:58:15 -08:00
parent e9142f9ebf
commit 44abf3c434
2 changed files with 19 additions and 0 deletions
+12
View File
@@ -208,6 +208,18 @@ func (a *NowPlayingPage) OnPlayTimeUpdate(_, _ float64) {
a.formatStatusLine()
}
var _ CanSelectAll = (*NowPlayingPage)(nil)
func (a *NowPlayingPage) SelectAll() {
a.queueList.SelectAll()
}
var _ fyne.Tappable = (*NowPlayingPage)(nil)
func (a *NowPlayingPage) Tapped(*fyne.PointEvent) {
a.queueList.UnselectAll()
}
func (a *NowPlayingPage) doSetNewTrackOrder(trackIDs []string, op sharedutil.TrackReorderOp) {
idxs := make([]int, 0, len(trackIDs))
for i, tr := range a.queue {