Fix and Optimize

fix: #3187 and #3096, silent startup can not trigger lightweight mode
fix: optimize startup initializing processing
This commit is contained in:
Tunglies
2025-04-05 10:24:53 +08:00
parent 55f1766ebc
commit 0de304d4e3
8 changed files with 30 additions and 56 deletions

View File

@@ -13,6 +13,7 @@ use crate::{
const LIGHT_WEIGHT_TASK_UID: &str = "light_weight_task";
pub fn enable_auto_light_weight_mode() {
let _ = Timer::global().init().unwrap();
logging!(info, Type::Lightweight, true, "开启自动轻量模式");
setup_window_close_listener();
setup_webview_focus_listener();