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

closes tauri-apps/tauri#11212
pull/1911/head
Amr Bashir 10 months ago committed by GitHub
parent 62082b7086
commit 51ddf6a715
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,6 @@
---
"shell": "patch"
"shell-js": "patch"
---
On Windows, Fix `open` JS API hanging and freezing the app.

@ -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,

Loading…
Cancel
Save