chore(process): use `request_restart` (#2581)

pull/2589/head
Tony 2 months ago committed by GitHub
parent 02e886b21a
commit d2aef2fddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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