fix: resolve lightweight mode state detection issues and improve logging #3814

This commit is contained in:
Tunglies
2025-09-02 08:00:53 +08:00
parent 45fdebeaca
commit 7aef9d2a5a
7 changed files with 52 additions and 108 deletions

View File

@@ -338,6 +338,11 @@ impl WindowManager {
}
}
/// 检查窗口是否存在
pub fn is_main_window_exists() -> bool {
Self::get_main_window().is_some()
}
/// 检查窗口是否可见
pub fn is_main_window_visible() -> bool {
Self::get_main_window()