From d2aef2fddbdfad6526935c55ac10a94171a4f5f5 Mon Sep 17 00:00:00 2001 From: Tony <68118705+Legend-Master@users.noreply.github.com> Date: Tue, 1 Apr 2025 22:17:23 +0800 Subject: [PATCH] chore(process): use `request_restart` (#2581) --- .changes/request-restart.md | 6 ++++++ plugins/process/src/commands.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/request-restart.md diff --git a/.changes/request-restart.md b/.changes/request-restart.md new file mode 100644 index 000000000..4d88e6ed9 --- /dev/null +++ b/.changes/request-restart.md @@ -0,0 +1,6 @@ +--- +process: patch +process-js: patch +--- + +Migrate restart to use tauri's new `AppHandle::request_restart` method diff --git a/plugins/process/src/commands.rs b/plugins/process/src/commands.rs index 2c27a3d22..3777294ad 100644 --- a/plugins/process/src/commands.rs +++ b/plugins/process/src/commands.rs @@ -11,5 +11,5 @@ pub fn exit(app: AppHandle, code: i32) { #[tauri::command] pub fn restart(app: AppHandle) { - app.restart() + app.request_restart() }