From f7d213180dc5da0ca16ea28f97538f38ef39af03 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 31 Mar 2025 10:09:12 +0800 Subject: [PATCH] chore(process): use request_restart --- .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 00000000..4d88e6ed --- /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 2c27a3d2..3777294a 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() }