From 92fe2f02ecd80e7ee4ec932e7ed267d124646508 Mon Sep 17 00:00:00 2001 From: Oughie <123173954+Oughie@users.noreply.github.com> Date: Wed, 17 Apr 2024 18:08:54 +0200 Subject: [PATCH] docs: Use correct method in file selector dialog example (#2074) Corrects iconsistency in docs: Instead of suggesting to use `show()`, it should suggest `pick_file()`, which is actually used in the Rust example. --- src/content/docs/features/dialog.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/features/dialog.mdx b/src/content/docs/features/dialog.mdx index 4f13f68277..82d96836ad 100644 --- a/src/content/docs/features/dialog.mdx +++ b/src/content/docs/features/dialog.mdx @@ -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;