fix double-click queuing action in related tracklist
This commit is contained in:
@@ -166,7 +166,7 @@ func NewNowPlayingPage(
|
|||||||
a.relatedList.OnSetRating = a.queueList.OnSetRating
|
a.relatedList.OnSetRating = a.queueList.OnSetRating
|
||||||
a.relatedList.OnSetFavorite = a.queueList.OnSetFavorite
|
a.relatedList.OnSetFavorite = a.queueList.OnSetFavorite
|
||||||
a.relatedList.OnPlayItemAt = func(idx int) {
|
a.relatedList.OnPlayItemAt = func(idx int) {
|
||||||
a.pm.LoadTracks([]*mediaprovider.Track{a.related[idx]}, backend.Replace, false)
|
a.pm.LoadTracks(a.related, backend.Replace, false)
|
||||||
a.pm.PlayTrackAt(idx)
|
a.pm.PlayTrackAt(idx)
|
||||||
}
|
}
|
||||||
a.relatedList.OnAddToQueue = func(items []mediaprovider.MediaItem) {
|
a.relatedList.OnAddToQueue = func(items []mediaprovider.MediaItem) {
|
||||||
|
|||||||
Reference in New Issue
Block a user