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

Loading…
Cancel
Save