Skip to content

Commit

Permalink
fix(shell): use async command for open JS API (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Oct 9, 2024
1 parent 62082b7 commit 51ddf6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/shell-open-hang-windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"shell": "patch"
"shell-js": "patch"
---

On Windows, Fix `open` JS API hanging and freezing the app.
2 changes: 1 addition & 1 deletion plugins/shell/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 51ddf6a

Please sign in to comment.