Create polished demo videos without editing skills. Mac/Windows/Linux
fix(recording): warn when cursor hiding fails
wiiiii1232b1441a67811
diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.tsindex 1f5538db..cb34670c 100644--- a/src/hooks/useScreenRecorder.ts+++ b/src/hooks/useScreenRecorder.ts@@ -1544,7 +1544,10 @@ export function useScreenRecorder(): UseScreenRecorderReturn {if (browserCursorPolicy.hideOsCursorBeforeRecording) {try {- await window.electronAPI.hideOsCursor?.();+ const hideCursorResult = await window.electronAPI.hideOsCursor?.();+ if (hideCursorResult && !hideCursorResult.success) {+ console.warn("Could not hide OS cursor before recording.", hideCursorResult);+ }} catch {console.warn("Could not hide OS cursor before recording.");}