feat(PlayQueue): disable shuffle mode when playing album or list

This commit is contained in:
Astrian Zheng 2025-05-28 11:34:43 +10:00
parent c02c3edce9
commit 84aca02fc0
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ function playTheAlbum(from: number = 0) {
album: album.value album: album.value
}) })
} }
playQueue.playMode.shuffle = false
playQueue.list = newPlayQueue playQueue.list = newPlayQueue
playQueue.currentIndex = from playQueue.currentIndex = from
playQueue.isPlaying = true playQueue.isPlaying = true

View File

@ -31,6 +31,7 @@ function playTheList(list: 'favourites' | number, playFrom: number = 0) {
})) }))
playQueueStore.list = newPlayQueue.slice().reverse() playQueueStore.list = newPlayQueue.slice().reverse()
playQueueStore.currentIndex = playFrom playQueueStore.currentIndex = playFrom
playQueueStore.playMode.shuffle = false
playQueueStore.isPlaying = true playQueueStore.isPlaying = true
playQueueStore.isBuffering = true playQueueStore.isBuffering = true
} else { } else {