Skip to content

Commit

Permalink
docs: Use correct method in file selector dialog example (#2074)
Browse files Browse the repository at this point in the history
Corrects iconsistency in docs: Instead of suggesting to use `show()`, it should suggest `pick_file()`, which is actually used in the Rust example.
  • Loading branch information
Oughie authored Apr 17, 2024
1 parent d60762b commit 92fe2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/features/dialog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ let file_path = app.dialog().file().blocking_pick_file();
// return a file_path `Option`, or `None` if the user closes the dialog
```

If you need a non blocking operation you can use `show()` instead:
If you need a non blocking operation you can use `pick_file()` instead:

```rust
use tauri_plugin_dialog::DialogExt;
Expand Down

0 comments on commit 92fe2f0

Please sign in to comment.