mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[PR #637] Separate QueueBehavior into ShuffleBehavior and LoopBehavior #636
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#636
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/637
Author: @TheForgottened
Created: 6/15/2025
Status: 🔄 Open
Base:
main← Head:main📝 Commits (4)
d9046d3Add new custom icon for no loop behavior90a5feeSeparate QueueBehavior into ShuffleBehavior and LoopBehavioreb491d1Fix icon sizeb60aa77Change minimum window size to prevent overlapping📊 Changes
10 files changed (+168 additions, -78 deletions)
View changed files
📝
psst-core/src/player/mod.rs(+12 -4)📝
psst-core/src/player/queue.rs(+35 -24)📝
psst-gui/src/cmd.rs(+4 -2)📝
psst-gui/src/controller/playback.rs(+32 -14)📝
psst-gui/src/data/config.rs(+5 -3)📝
psst-gui/src/data/mod.rs(+13 -6)📝
psst-gui/src/data/playback.rs(+11 -4)📝
psst-gui/src/ui/mod.rs(+1 -1)📝
psst-gui/src/ui/playback.rs(+48 -19)📝
psst-gui/src/widget/icons.rs(+7 -1)📄 Description
This PR aims to separate the QueueBehavior into ShuffleBehavior and LoopBehavior, so we are not limited to 4 pre-defined queue states.
The inspiration for this is that I always listen to my playlists in shuffle with repeat on, and this app wasn't allowing me to.
To accomplish this, an extra button was added to the UI and, in the code, QueueBehavior was turned into ShuffleBehavior and LoopBehavior. The new PLAY_LOOP_NONE SvgIcon is just a version of the PLAY_LOOP_ALL icon edited by ChatGPT, a more proper icon should probably be added.
One drawback I found is that the app crashes when trying to load a config file written before these changes, but honestly I don't know what the ideal fix (both in clean solution and respecting the app philosophy) would be, so I'll leave that up to the main faces behind the project.
Made in collaboration with @JOSEALM3IDA.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.