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() }