fix: update logging types and clean up ProxyRequestCache usage

This commit is contained in:
Tunglies
2025-09-02 22:19:22 +08:00
parent 926c095409
commit b51797e238
5 changed files with 42 additions and 22 deletions

View File

@@ -3,6 +3,7 @@ use crate::{
core::{handle, timer::Timer, tray::Tray},
log_err, logging,
process::AsyncHandler,
state::proxy::ProxyRequestCache,
utils::{logging::Type, window_manager::WindowManager},
};
@@ -153,6 +154,7 @@ pub async fn entry_lightweight_mode() {
}
set_lightweight_mode(true).await;
let _ = cancel_light_weight_timer();
ProxyRequestCache::global().clean_default_keys();
// 更新托盘显示
logging_error!(Type::Lightweight, true, Tray::global().update_part().await);