Changes
With this change the queue index will always reset to -1 (INDEX_NONE) once the last item in the queue ends instead of leaving the last queue item active. This solves various issues in the UI (like the screensaver) where it keeps showing the last item when nothing is playing
Allow INDEX_NONE in Queue.setIndex
Fix crash when getOrSupplyItem is invoked with a lower then 0 index (couldn't happen before this PR though)
Set queue index to INDEX_NONE once last queue item finishes
should've implemented this earlier
Changes With this change the queue index will always reset to -1 (INDEX_NONE) once the last item in the queue ends instead of leaving the last queue item active. This solves various issues in the UI (like the screensaver) where it keeps showing the last item when nothing is playing
INDEX_NONE
inQueue.setIndex
getOrSupplyItem
is invoked with a lower then 0 index (couldn't happen before this PR though)INDEX_NONE
once last queue item finishesIssues
Fixes #4214 Part of #1057