From 618d3a1632eb4924d96a57ada56f54f208c78826 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Tue, 21 Nov 2023 13:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E5=BA=94=E7=94=A8=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E5=85=B3=E9=97=AD=E9=9A=90=E8=97=8F=E7=9A=84?= =?UTF-8?q?=E5=AD=90=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 45acfa06..624bd33f 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -118,6 +118,10 @@ fn main() { ]) .setup(|_app| { let _window = _app.get_window("TeyvatGuide").unwrap(); + let _mhy = _app.get_window("mhy_client"); + if _mhy.is_some() { + _mhy.unwrap().close().unwrap(); + } #[cfg(debug_assertions)] // only include this code on debug builds _window.open_devtools(); // open the devtools on startup Ok(())