Skip to content

Commit

Permalink
fix toggle replay
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Oct 11, 2023
1 parent 3675146 commit 2c31571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/features/player/hooks/use-center-controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ export const useCenterControls = (args: { playersRef: any }) => {
return mpvPlayer?.setQueueNext(playerData);
}

const playerData = setRepeat(PlayerRepeat.NONE);
remote?.updateRepeat(PlayerRepeat.NONE);
return setRepeat(PlayerRepeat.NONE);
return mpvPlayer?.setQueueNext(playerData);
}, [repeatStatus, setRepeat]);

const checkIsLastTrack = useCallback(() => {
Expand Down

0 comments on commit 2c31571

Please sign in to comment.