Skip to content

Commit 5dab170

Browse files
Legend-Mastergezihuzi
authored andcommitted
chore(process): use request_restart (tauri-apps#2581)
1 parent 2f7cf3b commit 5dab170

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changes/request-restart.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
process: patch
3+
process-js: patch
4+
---
5+
6+
Migrate restart to use tauri's new `AppHandle::request_restart` method

plugins/process/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ pub fn exit<R: Runtime>(app: AppHandle<R>, code: i32) {
1111

1212
#[tauri::command]
1313
pub fn restart<R: Runtime>(app: AppHandle<R>) {
14-
app.restart()
14+
app.request_restart()
1515
}

0 commit comments

Comments
 (0)