From 2c315717b9c2c3dd9f9afa387ec1eaf10dbcfc24 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Wed, 11 Oct 2023 08:37:07 -0700 Subject: [PATCH] fix toggle replay --- src/renderer/features/player/hooks/use-center-controls.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/features/player/hooks/use-center-controls.ts b/src/renderer/features/player/hooks/use-center-controls.ts index 88311c145..24c60b0ee 100644 --- a/src/renderer/features/player/hooks/use-center-controls.ts +++ b/src/renderer/features/player/hooks/use-center-controls.ts @@ -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(() => {