mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[PR #385] [CLOSED] Queue behavior & position tracking for consistency #506
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#506
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/385
Author: @arch-btw
Created: 4/12/2023
Status: ❌ Closed
Base:
master← Head:patch-2📝 Commits (3)
2e895b2Queue behavior & position tracking for consistency68986e8Update queue.rs88651d3Update queue.rs📊 Changes
1 file changed (+18 additions, -18 deletions)
View changed files
📝
psst-core/src/player/queue.rs(+18 -18)📄 Description
Trying to improve the queue struct.... by which I mean the way it behaves during playback. So that the order of songs in the queue is consistent when switching between different playback behaviors or modifying queue.
This fixes the following error, which makes the program unusable until restarting it:
With these changes it now is making sure that the positions of the songs in the queue are always tracked properly by initializing the positions vector with the original order of the items. So that the songs are always played in the right order even if the queue behavior changes.
Also fixed a typo (behaviour -> behavior) and removed some unnecessary code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.