mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
chore(process): use request_restart (#2581)
This commit is contained in:
@@ -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]
|
#[tauri::command]
|
||||||
pub fn restart<R: Runtime>(app: AppHandle<R>) {
|
pub fn restart<R: Runtime>(app: AppHandle<R>) {
|
||||||
app.restart()
|
app.request_restart()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user