fix(shell): use async command for open JS API (#1881)

closes tauri-apps/tauri#11212
This commit is contained in:
Amr Bashir authored and GitHub committed 2024-10-09 08:47:25 -03:00
1 parent 62082b7086
commit 51ddf6a715
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
---
"shell": "patch"
"shell-js": "patch"
---
On Windows, Fix `open` JS API hanging and freezing the app.
+1 -1
View File
@@ -303,7 +303,7 @@ pub fn kill<R: Runtime>(
}
#[tauri::command]
pub fn open<R: Runtime>(
pub async fn open<R: Runtime>(
_window: Window<R>,
shell: State<'_, Shell<R>>,
path: String,