Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix preview with no timeline
Brendan Allane84fe856f959
diff --git a/apps/desktop/src-tauri/src/camera.rs b/apps/desktop/src-tauri/src/camera.rsindex b35649b34..31417ab15 100644--- a/apps/desktop/src-tauri/src/camera.rs+++ b/apps/desktop/src-tauri/src/camera.rs@@ -52,7 +52,7 @@ pub fn create_camera_window(app: AppHandle) {}}-#[tauri::command]+#[tauri::command(async)]#[specta::specta]pub fn list_cameras() -> Vec<String> {nokhwa::query(nokhwa::utils::ApiBackend::Auto)diff --git a/apps/desktop/src-tauri/src/editor_instance.rs b/apps/desktop/src-tauri/src/editor_instance.rsindex 9e7513bd6..cc9ad025e 100644--- a/apps/desktop/src-tauri/src/editor_instance.rs+++ b/apps/desktop/src-tauri/src/editor_instance.rs@@ -219,9 +219,9 @@ impl EditorInstance {continue;};- let Some(time) = project.timeline.as_ref().and_then(|timeline| {+ let Some(time) = project.timeline.as_ref().map(|timeline| {timeline.get_recording_time(frame_number as f64 / FPS as f64)- }) else {+ }).unwrap_or(Some(frame_number as f64 / FPS as f64)) else {continue;};