mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🎨 避免关闭卡顿
This commit is contained in:
@@ -96,8 +96,10 @@ fn main() {
|
|||||||
// 子窗口 label 的数组
|
// 子窗口 label 的数组
|
||||||
const SUB_WINDOW_LABELS: [&str; 3] = ["Sub_window", "Dev_JSON", "mhy_client"];
|
const SUB_WINDOW_LABELS: [&str; 3] = ["Sub_window", "Dev_JSON", "mhy_client"];
|
||||||
for label in SUB_WINDOW_LABELS.iter() {
|
for label in SUB_WINDOW_LABELS.iter() {
|
||||||
let sub = window.get_window(label).unwrap();
|
let sub = window.get_window(label);
|
||||||
sub.close().unwrap();
|
if sub.is_some() {
|
||||||
|
sub.unwrap().close().unwrap();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.close().unwrap();
|
window.close().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user