From f5d0513d1f02b8efc4859c36ecef9b325f941bed Mon Sep 17 00:00:00 2001
From: GyDi <segydi@foxmail.com>
Date: Thu, 14 Apr 2022 01:29:33 +0800
Subject: [PATCH] fix: reset after exit

---
 src-tauri/src/main.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index dfa638a..77e99fa 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -170,6 +170,10 @@ fn main() -> std::io::Result<()> {
         resolve::resolve_reset(app_handle);
         api::process::kill_children();
       }
+      tauri::RunEvent::Exit => {
+        resolve::resolve_reset(app_handle);
+        api::process::kill_children();
+      }
       _ => {}
     });
 
-- 
GitLab