chore(process): use request_restart (#2581)

This commit is contained in:
Tony
2025-04-01 22:17:23 +08:00
committed by GitHub
parent 02e886b21a
commit d2aef2fddb
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
process: patch
process-js: patch
---
Migrate restart to use tauri's new `AppHandle::request_restart` method

View File

@@ -11,5 +11,5 @@ pub fn exit<R: Runtime>(app: AppHandle<R>, code: i32) {
#[tauri::command]
pub fn restart<R: Runtime>(app: AppHandle<R>) {
app.restart()
app.request_restart()
}