mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[PR #358] [MERGED] Fix queue behaviour when switching away from random #498
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#498
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jpochyla/psst/pull/358
Author: @bivhitscar
Created: 11/19/2022
Status: ✅ Merged
Merged: 1/12/2023
Merged by: @Insprill
Base:
master← Head:fix_queue_behaviour_switching📝 Commits (2)
4d9bc9dFix queue behaviour when switching away from random974911dRestore if let syntax📊 Changes
1 file changed (+9 additions, -0 deletions)
View changed files
📝
psst-core/src/player/queue.rs(+9 -0)📄 Description
Playback should proceed according to the currently selected queue behaviour. The implementation of random/shuffle was causing other options to fail if it had been previously selected.
This change restores the actual playlist position when switching queue behaviours, allowing for correct queue advancement at the end of the currently playing item.
To reproduce the original problem:
Open a playlist/album.
Select and play any item other than number 1*.
Select the random queue behaviour.
Select the loop all behaviour.
Click the skip to next item button.
When play advances to the next item, it will not be as expected (item 2 will probably play).
*The problem still exists from here, but is harder to spot.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.