Browse Source

fix sort range select

master
jeffvli 3 years ago
parent
commit
a9ffc16137
  1. 6
      src/components/player/NowPlayingMiniView.tsx
  2. 6
      src/components/player/NowPlayingView.tsx

6
src/components/player/NowPlayingMiniView.tsx

@ -70,7 +70,11 @@ const NowPlayingMiniView = () => {
dispatch(setRangeSelected(rowData)); dispatch(setRangeSelected(rowData));
dispatch( dispatch(
toggleRangeSelected( toggleRangeSelected(
playQueue.shuffle ? playQueue.shuffledEntry : playQueue.entry playQueue.sortedEntry.length > 0
? playQueue.sortedEntry
: playQueue.shuffle
? playQueue.shuffledEntry
: playQueue.entry
) )
); );
} else { } else {

6
src/components/player/NowPlayingView.tsx

@ -72,7 +72,11 @@ const NowPlayingView = () => {
} else { } else {
dispatch( dispatch(
toggleRangeSelected( toggleRangeSelected(
playQueue.shuffle ? playQueue.shuffledEntry : playQueue.entry playQueue.sortedEntry.length > 0
? playQueue.sortedEntry
: playQueue.shuffle
? playQueue.shuffledEntry
: playQueue.entry
) )
); );
} }

Loading…
Cancel
Save