Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fmt

Richie McIlroy063f6acdc4fa
diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rs
index 674c64049..66ab21277 100644
--- a/apps/desktop/src-tauri/src/windows.rs
+++ b/apps/desktop/src-tauri/src/windows.rs
@@ -1155,14 +1155,11 @@ impl ShowCapWindow {
ensure_camera_input_active(&mut app_state).await;
- if enable_native_camera_preview {
- if let Err(err) =
+ if enable_native_camera_preview
+ && let Err(err) =
init_native_camera_preview(&mut app_state, window.clone()).await
- {
- error!(
- "Error reinitializing camera preview for existing window: {err}"
- );
- }
+ {
+ error!("Error reinitializing camera preview for existing window: {err}");
}
drop(app_state);