Skip to content

fix: scope album shuffle to currently displayed albums#1147

Merged
digimezzo merged 1 commit into
digimezzo:masterfrom
UrielJaloto:fix/1146_genre-album-shuffle
Jun 28, 2026
Merged

fix: scope album shuffle to currently displayed albums#1147
digimezzo merged 1 commit into
digimezzo:masterfrom
UrielJaloto:fix/1146_genre-album-shuffle

Conversation

@UrielJaloto

Copy link
Copy Markdown
Contributor

This PR fixes the behavior of the album shuffle button inside the <app-album-browser> component.

Previously, clicking the shuffle button would trigger getVisibleTracks(), which shuffled the entire global library. This update modifies the shuffleAllAsync() function to extract the keys of the currently rendered albums and fetch tracks exclusively from them using getTracksForAlbums().

This ensures that shuffling from the Genres or Artists tabs respects the currently selected scope.

Fixes #1146

@digimezzo digimezzo added this to the Dopamine 3.0.7 milestone Jun 20, 2026
@digimezzo

Copy link
Copy Markdown
Owner

Thank you for this PR. I'll review it.

@digimezzo digimezzo merged commit b986b5e into digimezzo:master Jun 28, 2026
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.

[BUG] Album shuffle button in Genres tab shuffles globally instead of within the genre

2 participants