Skip to content

Add a sub-menu to the shuffle playlist menu to decide how to shuffle.#2037

Open
Vinzzzze wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Vinzzzze:shuffle_playlist
Open

Add a sub-menu to the shuffle playlist menu to decide how to shuffle.#2037
Vinzzzze wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Vinzzzze:shuffle_playlist

Conversation

@Vinzzzze
Copy link
Copy Markdown
Contributor

Change the menu Shuffle playlist (mainwindow ui) to offer three shuffle modes :

  • track based shuffle (the actual playlist shuffle mode)
  • album based shuffle : shuffle the playlist by album and make the album played in the track number order
  • grouped track shuffle : keep the grouped tracks together, other tracks and distinct track group are shuffled.

Correct what I consider as an issue : when playing a playlist with a mode shuffle grouped, the tracks are played in the order they have in the playlist. Grouped tracks must be played following the track number order.

Update mainwindow for updating the menus
Update playlist to make the ReshuffleIndices reusable for both Reshuffling indices when playing in shuffle mode and when shuffling the playlist from the menu. I left some commented code with a TODO mark for some code linked to another PR to remind me what to do when I will merge one branch in the other.
Update the playlistmanager and it's interface to handle the choice we can now make while shuffling a playlist.
Add the translations for the created menu

@Vinzzzze Vinzzzze force-pushed the shuffle_playlist branch 4 times, most recently from b67c38c to 37f312f Compare March 20, 2026 18:24
Comment thread src/playlist/playlist.cpp Outdated
Comment thread src/playlist/playlist.cpp Outdated
Comment thread src/playlist/playlist.h Outdated
Comment thread src/playlist/playlist.h Outdated
@Vinzzzze Vinzzzze force-pushed the shuffle_playlist branch 3 times, most recently from da0abb6 to 151a5d1 Compare April 4, 2026 18:36
@Vinzzzze Vinzzzze force-pushed the shuffle_playlist branch 3 times, most recently from 9f20871 to b40c2ea Compare April 10, 2026 19:29
@Vinzzzze Vinzzzze force-pushed the shuffle_playlist branch 5 times, most recently from 7294324 to 32dc249 Compare April 23, 2026 22:53
@Vinzzzze Vinzzzze force-pushed the shuffle_playlist branch from 0a876e4 to e5fed47 Compare May 6, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants