don't enforce playback mode when not playing

pull/2575/head
Mikael Finstad 8 months ago
parent 2511064db7
commit 251106bcb0
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -746,7 +746,7 @@ function App() {
const firstSegmentAtCursorIndex = segmentsAtCursorIndexes[0];
const playingSegment = firstSegmentAtCursorIndex != null ? cutSegments[firstSegmentAtCursorIndex] : undefined;
if (playbackModeRef.current != null && playingSegment && playingSegment.end != null) { // todo and is currently playing?
if (playbackModeRef.current != null && playingRef.current && playingSegment && playingSegment.end != null) { // todo and is currently playing?
const nextAction = getPlaybackAction({ playbackMode: playbackModeRef.current, currentTime, playingSegment: { start: playingSegment.start, end: playingSegment.end } });
const exit = () => {
@ -780,7 +780,7 @@ function App() {
}
}
}
}, [commandedTimeRef, cutSegments, findSegmentsAtCursor, pause, playbackModeRef, playerTime, seekAbs, selectedSegments, setCurrentSegIndex, setPlaybackMode, setPlayerTime]);
}, [commandedTimeRef, cutSegments, findSegmentsAtCursor, pause, playbackModeRef, playerTime, playingRef, seekAbs, selectedSegments, setCurrentSegIndex, setPlaybackMode, setPlayerTime]);
const closeFileWithConfirm = useCallback(() => {
if (!isFileOpened || workingRef.current) return;

Loading…
Cancel
Save