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
+11 -2
View File
@@ -190,8 +190,17 @@ class QueueStore {
EventsEmit(Events.RequestPrevious);
}
setQueue(filePaths: string[], startIndex: number): void {
EventsEmit(Events.RequestSetQueue, filePaths, startIndex);
setQueue(
filePaths: string[],
startIndex: number,
shuffleStart = false,
): void {
EventsEmit(
Events.RequestSetQueue,
filePaths,
startIndex,
shuffleStart,
);
}
addToQueue(filePath: string): void {