Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix: report a failed browser recording as stopped to the main process

EtienneLescot63ae10ed9799
diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.ts
index 65d4ac003..ae86f3c7d 100644
--- a/src/hooks/useScreenRecorder.ts
+++ b/src/hooks/useScreenRecorder.ts
@@ -2028,6 +2028,9 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
"error",
() => {
setRecording(false);
+ // The main process was told a take started (below), so it has to hear
+ // that it ended too, or the tray and the display-sleep blocker stay on.
+ window.electronAPI?.setRecordingState(false);
},
{ once: true },
);