Create polished demo videos without editing skills. Mac/Windows/Linux
fix: await setRecordingState before muxNativeWindowsRecording
webadderall9171ba6115e9
diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.tsindex 3af7bf2d..f5db2efa 100644--- a/src/hooks/useScreenRecorder.ts+++ b/src/hooks/useScreenRecorder.ts@@ -479,7 +479,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn {nativeWindowsRecording.current = false;const result = await window.electronAPI.stopNativeScreenRecording();- window.electronAPI?.setRecordingState(false);+ await window.electronAPI?.setRecordingState(false);if (!result.success || !result.path) {console.error("Failed to stop native screen recording:", result.error ?? result.message);