🚸 应用加载时关闭隐藏的子窗口

This commit is contained in:
BTMuli
2023-11-21 13:53:18 +08:00
parent 1c3b73bde9
commit 618d3a1632

View File

@@ -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(())