fix(queue): clear shuffled id list when queue is cleared
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2531>
This commit is contained in:
parent
4b4815435c
commit
9625732b08
|
@ -0,0 +1 @@
|
|||
Clear shuffled id list on queue clear (#2192)
|
|
@ -329,6 +329,10 @@ export const useQueue = createGlobalState(() => {
|
|||
clearRadio.value = true
|
||||
|
||||
const lastTracks = [...tracks.value]
|
||||
|
||||
// Clear shuffled tracks
|
||||
shuffledIds.value.length = 0
|
||||
|
||||
tracks.value.length = 0
|
||||
await delMany(lastTracks)
|
||||
|
||||
|
|
Loading…
Reference in New Issue