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 |     clearRadio.value = true | ||||||
| 
 | 
 | ||||||
|     const lastTracks = [...tracks.value] |     const lastTracks = [...tracks.value] | ||||||
|  | 
 | ||||||
|  |     // Clear shuffled tracks
 | ||||||
|  |     shuffledIds.value.length = 0 | ||||||
|  | 
 | ||||||
|     tracks.value.length = 0 |     tracks.value.length = 0 | ||||||
|     await delMany(lastTracks) |     await delMany(lastTracks) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Kasper Seweryn
						Kasper Seweryn