Browse Source

fix shuffle toggle

master
jeffvli 3 years ago
parent
commit
ae5859a4c9
  1. 7
      src/components/player/NowPlayingView.tsx

7
src/components/player/NowPlayingView.tsx

@ -11,6 +11,7 @@ import {
fixPlayer2Index, fixPlayer2Index,
clearPlayQueue, clearPlayQueue,
shuffleInPlace, shuffleInPlace,
toggleShuffle,
} from '../../redux/playQueueSlice'; } from '../../redux/playQueueSlice';
import { import {
toggleSelected, toggleSelected,
@ -130,7 +131,11 @@ const NowPlayingView = () => {
<HeaderButton <HeaderButton
size="sm" size="sm"
onClick={() => { onClick={() => {
dispatch(shuffleInPlace()); if (playQueue.shuffle) {
dispatch(shuffleInPlace());
} else {
dispatch(toggleShuffle());
}
}} }}
> >
Shuffle Shuffle

Loading…
Cancel
Save