feat: check window render size and wait for completion to prevent white screen

This commit is contained in:
wonfen
2025-04-16 00:10:06 +08:00
committed by Tunglies
parent fad73a281a
commit 85d08fadd9
4 changed files with 258 additions and 14 deletions

View File

@@ -214,3 +214,11 @@ pub fn copy_icon_file(path: String, icon_info: IconInfo) -> CmdResult<String> {
Err("file not found".to_string())
}
}
/// 通知UI已准备就绪
#[tauri::command]
pub fn notify_ui_ready() -> CmdResult<()> {
log::info!(target: "app", "前端UI已准备就绪");
crate::utils::resolve::mark_ui_ready();
Ok(())
}