Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
break infinite loop with show recordings window
PJ415bfcbf0731
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rsindex 8871b980d..eb9a12f00 100644--- a/apps/desktop/src-tauri/src/lib.rs+++ b/apps/desktop/src-tauri/src/lib.rs@@ -1230,7 +1230,7 @@ async fn remove_fake_window(#[tauri::command(async)]#[specta::specta]fn show_previous_recordings_window(app: AppHandle) {- if let Some(window) = app.get_webview_window("prev-recordings") {+ if app.get_webview_window("prev-recordings").is_some() {println!("prev-recordings window already exists");return;}@@ -1267,7 +1267,7 @@ fn show_previous_recordings_window(app: AppHandle) {&& mouse_position.y <= y_max{ignore = false;- ShowCapturesPanel.emit(&app).ok();+ // ShowCapturesPanel.emit(&app).ok();break;}}diff --git a/apps/desktop/src/routes/(window-chrome)/index.tsx b/apps/desktop/src/routes/(window-chrome)/index.tsxindex 12130c3d7..a41452ad0 100644--- a/apps/desktop/src/routes/(window-chrome)/index.tsx+++ b/apps/desktop/src/routes/(window-chrome)/index.tsx@@ -63,10 +63,7 @@ export default function () {});onMount(async () => {- const w = await Window.getByLabel("prev-recordings");- if (!w) {- await commands.showPreviousRecordingsWindow();- }+ await commands.showPreviousRecordingsWindow();});const isRecording = () => !!currentRecording.data;