Skip to content

Commit 51ddf6a

Browse files
authored
fix(shell): use async command for open JS API (#1881)
closes tauri-apps/tauri#11212
1 parent 62082b7 commit 51ddf6a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"shell": "patch"
3+
"shell-js": "patch"
4+
---
5+
6+
On Windows, Fix `open` JS API hanging and freezing the app.

plugins/shell/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ pub fn kill<R: Runtime>(
303303
}
304304

305305
#[tauri::command]
306-
pub fn open<R: Runtime>(
306+
pub async fn open<R: Runtime>(
307307
_window: Window<R>,
308308
shell: State<'_, Shell<R>>,
309309
path: String,

0 commit comments

Comments
 (0)