chore(process): use request_restart

pull/2581/head
Tony 4 months ago
parent a77b1353e9
commit f7d213180d
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

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

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

Loading…
Cancel
Save