mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
fix: update logging types and clean up ProxyRequestCache usage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user