Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Reset camera and mic state on input removal

Richie McIlroy8a922a4abc26
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs
index c45ccc982..a63ae7fe0 100644
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@ -2620,6 +2620,9 @@ pub async fn run(recording_logging_handle: LoggingHandle, logs_dir: PathBuf) {
.camera_feed
.ask(feeds::camera::RemoveInput)
.await;
+ app_state.selected_mic_label = None;
+ app_state.selected_camera_id = None;
+ app_state.camera_in_use = false;
}
});
}