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
+7
View File
@@ -118,6 +118,13 @@ func (p *PlayQueueList) SetNowPlaying(trackID string) {
}
}
func (p *PlayQueueList) SelectAll() {
p.tracksMutex.RLock()
util.SelectAllTracks(p.tracks)
p.tracksMutex.RUnlock()
p.list.Refresh()
}
func (p *PlayQueueList) UnselectAll() {
p.tracksMutex.RLock()
util.UnselectAllTracks(p.tracks)