Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): log camera window content protection failures

Richie McIlroyee72457ff8f1
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index 5f36d85fb..0090664e7 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -932,8 +932,11 @@ pub async fn start_recording(
.add_recording_logging_handle(&project_file_path.join("recording-logs.log"))
.await?;
- if let Some(window) = CapWindowId::Camera.get(&app) {
- let _ = window.set_content_protected(matches!(inputs.mode, RecordingMode::Studio));
+ if let Some(window) = CapWindowId::Camera.get(&app)
+ && let Err(error) =
+ window.set_content_protected(matches!(inputs.mode, RecordingMode::Studio))
+ {
+ warn!(%error, "Failed to update camera window content protection");
}
let video_upload_info = match inputs.mode {