mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🚸 应用加载时关闭隐藏的子窗口
This commit is contained in:
@@ -118,6 +118,10 @@ fn main() {
|
|||||||
])
|
])
|
||||||
.setup(|_app| {
|
.setup(|_app| {
|
||||||
let _window = _app.get_window("TeyvatGuide").unwrap();
|
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
|
#[cfg(debug_assertions)] // only include this code on debug builds
|
||||||
_window.open_devtools(); // open the devtools on startup
|
_window.open_devtools(); // open the devtools on startup
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user