Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix:handle hideCountdownOverlay rejections in cleanup/cancel paths.
Galactic99331e126d3c4b
diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.tsindex 44dece06f..f208013ab 100644--- a/src/hooks/useScreenRecorder.ts+++ b/src/hooks/useScreenRecorder.ts@@ -339,7 +339,9 @@ export function useScreenRecorder(): UseScreenRecorderReturn {const activeRunId = countdownRunId.current;if (cleanup) cleanup();countdownRunId.current += 1;- void window.electronAPI.hideCountdownOverlay(activeRunId);+ void window.electronAPI.hideCountdownOverlay(activeRunId).catch((error) => {+ console.warn("Failed to hide countdown overlay during cleanup:", error);+ });allowAutoFinalize.current = false;restarting.current = false;discardRecordingId.current = null;@@ -374,7 +376,9 @@ export function useScreenRecorder(): UseScreenRecorderReturn {const activeRunId = countdownRunId.current;countdownRunId.current += 1;setCountdownActive(false);- void window.electronAPI.hideCountdownOverlay(activeRunId);+ void window.electronAPI.hideCountdownOverlay(activeRunId).catch((error) => {+ console.warn("Failed to hide countdown overlay during cancel:", error);+ });};const safeShowCountdownOverlay = async (value: number, runId: number) => {