Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Handle microphone restoration after reconnect
Richie McIlroy02b15ac740ab
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rsindex 2577f9329..e35510407 100644--- a/apps/desktop/src-tauri/src/lib.rs+++ b/apps/desktop/src-tauri/src/lib.rs@@ -508,8 +508,18 @@ fn spawn_mic_error_handler(app_handle: AppHandle, error_rx: flume::Receiver<Strewarn!("Failed to pause recording after mic disconnect: {handle_err}");}- if let Err(restart_err) = app.ensure_selected_mic_ready().await {- warn!("Failed to restart microphone input: {restart_err}");+ match app.ensure_selected_mic_ready().await {+ Ok(()) => {+ if let Err(restored_err) = app+ .handle_input_restored(RecordingInputKind::Microphone)+ .await+ {+ warn!("Failed to handle mic restoration: {restored_err}");+ }+ }+ Err(restart_err) => {+ warn!("Failed to restart microphone input: {restart_err}");+ }}}});