Skip to content

Commit 8a922a4

Browse files
committed
Reset camera and mic state on input removal
1 parent 7efaa6a commit 8a922a4

File tree

1 file changed

+3
-0
lines changed
  • apps/desktop/src-tauri/src

1 file changed

+3
-0
lines changed

apps/desktop/src-tauri/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,6 +2620,9 @@ pub async fn run(recording_logging_handle: LoggingHandle, logs_dir: PathBuf) {
26202620
.camera_feed
26212621
.ask(feeds::camera::RemoveInput)
26222622
.await;
2623+
app_state.selected_mic_label = None;
2624+
app_state.selected_camera_id = None;
2625+
app_state.camera_in_use = false;
26232626
}
26242627
});
26252628
}

0 commit comments

Comments
 (0)