We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5293445 commit 9c65abcCopy full SHA for 9c65abc
.changes/api-relaunch-cleanup.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Run `AppHandle` cleanup code before restarting the application on the `process > relaunch` API.
core/tauri/src/endpoints/process.rs
@@ -23,7 +23,7 @@ pub enum Cmd {
23
impl Cmd {
24
#[module_command_handler(process_relaunch, "process > relaunch")]
25
fn relaunch<R: Runtime>(context: InvokeContext<R>) -> super::Result<()> {
26
- crate::api::process::restart(&context.window.state());
+ context.window.app_handle().restart();
27
Ok(())
28
}
29
0 commit comments