playing a new queue with shuffle enabled now starts at a random track.

This commit is contained in:
2026-02-23 12:13:40 -05:00
parent 1dfbfd9595
commit 3349e785d7
8 changed files with 72 additions and 22 deletions
@@ -79,8 +79,12 @@ export class QueueController implements ReactiveController {
queueStore.previous();
}
setQueue(filePaths: string[], startIndex: number): void {
queueStore.setQueue(filePaths, startIndex);
setQueue(
filePaths: string[],
startIndex: number,
shuffleStart = false,
): void {
queueStore.setQueue(filePaths, startIndex, shuffleStart);
}
addToQueue(filePath: string): void {