mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-01-31 00:45:24 +01:00
chore(process): use request_restart (#2581)
This commit is contained in:
6
.changes/request-restart.md
Normal file
6
.changes/request-restart.md
Normal file
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user