Explorar o código

fix(core): cleanup app before exit, closes #2464 (#2466)

Lucas Fernandes Nogueira %!s(int64=4) %!d(string=hai) anos
pai
achega
a54bba6c86
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 5 0
      .changes/app-handle-exit-cleanup.md
  2. 1 0
      core/tauri/src/app.rs

+ 5 - 0
.changes/app-handle-exit-cleanup.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch
+---
+
+Cleanup application on `AppHandle#exit`.

+ 1 - 0
core/tauri/src/app.rs

@@ -257,6 +257,7 @@ impl<R: Runtime> AppHandle<R> {
 
   /// Exits the app
   pub fn exit(&self, exit_code: i32) {
+    self.cleanup_before_exit();
     std::process::exit(exit_code);
   }