Skip to content

Commit 6d19b6f

Browse files
authored
docs: fix PathResolver getter in calling-rust guide (#3463)
1 parent 26ac3d7 commit 6d19b6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/develop/calling-rust.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Commands can access an `AppHandle` instance:
451451
```rust title="src-tauri/src/lib.rs"
452452
#[tauri::command]
453453
async fn my_custom_command(app_handle: tauri::AppHandle) {
454-
let app_dir = app_handle.path_resolver().app_dir();
454+
let app_dir = app_handle.path().app_dir();
455455
use tauri::GlobalShortcutManager;
456456
app_handle.global_shortcut_manager().register("CTRL + U", move || {});
457457
}
@@ -470,7 +470,7 @@ use tauri::{AppHandle, GlobalShortcutManager, Runtime, WebviewWindow};
470470

471471
#[tauri::command]
472472
async fn my_custom_command<R: Runtime>(app_handle: AppHandle<R>, webview_window: WebviewWindow<R>) {
473-
let app_dir = app_handle.path_resolver().app_dir();
473+
let app_dir = app_handle.path().app_dir();
474474
app_handle
475475
.global_shortcut_manager()
476476
.register("CTRL + U", move || {});

0 commit comments

Comments
 (0)