Bug 437096

Summary: Weird remaining tracks behaviour
Product: [Applications] Elisa Reporter: akm <alexvkaam>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 21.04.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description akm 2021-05-14 15:40:54 UTC
SUMMARY

When in Elisa you have the "do not repeat tracks"  button selected and you then press the random button several times the remaining tracks numbers go all over the place.  I have 4220 tracks and the remaining will go from as low as 200 to as high as 3900

STEPS TO REPRODUCE
1. have a list of tracks on the right side
2. have "do not repeat tracks" enabled
3. press the random button a few times

OBSERVED RESULT

Remaining tracks goes all over the place

EXPECTED RESULT

I would except the remaining be max track -1 (as it is when you do it first time) and have the tracks just change order on the right with the first track / playing track at the top of the list and the others all below it

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Tumbleweed
KDE Frameworks 5.82.0
Qt 5.15.2 (gebouwd tegen 5.15.2)
Het xcb venstersysteem

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-05-18 20:39:56 UTC
It's because the currently playing track switches position due to being shuffled. If it was previously in a position where it had 13 tracks after it, it could easily move to a position where it has 2 or 50 tracks after it after the shuffling. So the number of remaining tracks is simply updating itself accordingly.