"Clear Queue" bug when random/shuffle is enabled
Steps to reproduce
- With random/shuffle on, visit any page with the player at the bottom
- Click on the playlist/queue dropdown-looking button on the lower right (will read like '5 of 32')
- When the queue pops up, click Clear at the top
- Then load/play a track or a playlist
What happens?
Although the queue will appear to have been emptied, the newly loaded track or playlist will simply append to what was originally displayed in the queue. For example, if I load a playlist of 32 songs, click 'clear', then load the same playlist, my queue will say 1 of 64. (It will continue to accumulate/never clears).
What is expected?
It's expected that only the track or playlist will be added to an empty queue.
Context
Funkwhale version(s) affected: 1.3.1+git.cc7fde67
Happens on Brave Version 1.52.130 Chromium: 114.0.5735.198 and Firefox 102.4.0esr