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

closes tauri-apps/tauri#11212
This commit is contained in:
Amr Bashir
2024-10-09 14:47:25 +03:00
committed by GitHub
parent 62082b7086
commit 51ddf6a715
2 changed files with 7 additions and 1 deletions
+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,