Skip to content

Commit

Permalink
fix(shell): use async command for open JS API
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Oct 4, 2024
1 parent fd785ab commit e88d907
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 e88d907

Please sign in to comment.