mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
use initial index for shuffling when availabe
This commit is contained in:
parent
039d008223
commit
055d9ac5c1
2 changed files with 22 additions and 8 deletions
|
|
@ -75,7 +75,9 @@ export const useHandlePlayQueueAdd = () => {
|
|||
if (!server) return toast.error({ message: 'No server selected', type: 'error' });
|
||||
const { byData, byItemType, initialIndex, initialSongId, playType, query } = options;
|
||||
let songs: null | QueueSong[] = null;
|
||||
let initialSongIndex = 0;
|
||||
// Allow this to be undefined for "play shuffled". If undefined, default to 0,
|
||||
// otherwise, choose the selected item in the queue
|
||||
let initialSongIndex: number | undefined;
|
||||
|
||||
if (byItemType) {
|
||||
let songList: SongListResponse | undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue