Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
style(desktop-tauri): format general_settings, logging, and recording
Richie McIlroya712fb80ca84
diff --git a/apps/desktop/src-tauri/src/general_settings.rs b/apps/desktop/src-tauri/src/general_settings.rsindex 1b0a87444..a1d3441f9 100644--- a/apps/desktop/src-tauri/src/general_settings.rs+++ b/apps/desktop/src-tauri/src/general_settings.rs@@ -350,9 +350,7 @@ impl GeneralSettingsStore {if path.is_absolute() { Some(path) } else { None }});- let path = custom.unwrap_or_else(|| {- app.path().app_data_dir().unwrap().join("recordings")- });+ let path = custom.unwrap_or_else(|| app.path().app_data_dir().unwrap().join("recordings"));if let Err(e) = std::fs::create_dir_all(&path) {tracing::warn!(?path, %e, "Failed to create recordings directory");}@@ -453,9 +451,9 @@ pub fn init(app: &AppHandle) {if let Ok(raw_store) = app.store("store")&& raw_store.get(REMOVE_TARGET_SELECT_MIGRATION_KEY).is_none(){- store.excluded_windows.retain(|w| {- w.window_title.as_deref() != Some("Cap Target Select")- });+ store+ .excluded_windows+ .retain(|w| w.window_title.as_deref() != Some("Cap Target Select"));raw_store.set(REMOVE_TARGET_SELECT_MIGRATION_KEY, json!(true));}diff --git a/apps/desktop/src-tauri/src/logging.rs b/apps/desktop/src-tauri/src/logging.rsindex 3fe05afad..64c690c3e 100644--- a/apps/desktop/src-tauri/src/logging.rs+++ b/apps/desktop/src-tauri/src/logging.rs@@ -1,4 +1,7 @@-use crate::{ArcLock, feeds::microphone::MicrophoneFeed, general_settings::GeneralSettingsStore, permissions, web_api::ManagerExt};+use crate::{+ ArcLock, feeds::microphone::MicrophoneFeed, general_settings::GeneralSettingsStore,+ permissions, web_api::ManagerExt,+};use cap_recording::diagnostics::{CameraDiagnostics, CameraFormatInfo, DisplayDiagnostics, HardwareInfo, MicrophoneDiagnostics,StorageInfo,diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rsindex 91bf7b5db..b18e96c06 100644--- a/apps/desktop/src-tauri/src/recording.rs+++ b/apps/desktop/src-tauri/src/recording.rs@@ -2372,8 +2372,8 @@ async fn handle_spawn_failure(// DeviceNotFound errors are surfaced to the user via the frontend toast; skip the// blocking native dialog so the overlay stays responsive and the error isn't repeated.- let is_device_not_found = message.contains("no longer available")- || message.contains("DeviceNotFound");+ let is_device_not_found =+ message.contains("no longer available") || message.contains("DeviceNotFound");if !is_device_not_found {let mut dialog = MessageDialogBuilder::new(