Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix show_window

Brendan Allan3affae3ccef8
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs
index bf105eafd..4a32dac67 100644
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@ -1654,7 +1654,8 @@ async fn seek_to(app: AppHandle, video_id: String, frame_number: u32) {
.await;
}
-#[tauri::command]
+// keep this async otherwise opening windows may hang on windows
+#[tauri::command(async)]
#[specta::specta]
fn show_window(app: AppHandle, window: ShowCapWindow) {
window.show(&app).ok();