fix: enhance startup speed and fix connection issues during initialization

This commit is contained in:
Tunglies
2025-09-02 23:10:02 +08:00
parent b51797e238
commit 0bb9cb5097
5 changed files with 25 additions and 29 deletions

View File

@@ -90,12 +90,6 @@ pub async fn auto_lightweight_mode_init() -> Result<()> {
);
set_lightweight_mode(true).await;
enable_auto_light_weight_mode().await;
// 确保托盘状态更新
if let Err(e) = Tray::global().update_part().await {
log::warn!("Failed to update tray: {e}");
return Err(e);
}
}
Ok(())