mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
feat: add known issues section and update lightweight mode handling
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
## v2.4.3
|
## v2.4.3
|
||||||
|
|
||||||
|
### ⚠️ 已知问题
|
||||||
|
|
||||||
|
- 退出轻量可能程序无响应
|
||||||
|
|
||||||
### 🐞 修复问题
|
### 🐞 修复问题
|
||||||
|
|
||||||
- macOS intel Mihomo 兼容性
|
- macOS intel Mihomo 兼容性
|
||||||
|
|||||||
@@ -63,11 +63,8 @@ pub async fn run_once_auto_lightweight() {
|
|||||||
"在静默启动的情况下,创建窗口再添加自动进入轻量模式窗口监听器"
|
"在静默启动的情况下,创建窗口再添加自动进入轻量模式窗口监听器"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
set_lightweight_mode(true).await;
|
||||||
enable_auto_light_weight_mode().await;
|
enable_auto_light_weight_mode().await;
|
||||||
|
|
||||||
if let Err(e) = Tray::global().update_part().await {
|
|
||||||
log::warn!("Failed to update tray: {e}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn auto_lightweight_mode_init() -> Result<()> {
|
pub async fn auto_lightweight_mode_init() -> Result<()> {
|
||||||
@@ -149,9 +146,6 @@ pub async fn entry_lightweight_mode() {
|
|||||||
set_lightweight_mode(true).await;
|
set_lightweight_mode(true).await;
|
||||||
let _ = cancel_light_weight_timer();
|
let _ = cancel_light_weight_timer();
|
||||||
ProxyRequestCache::global().clean_default_keys();
|
ProxyRequestCache::global().clean_default_keys();
|
||||||
|
|
||||||
// 更新托盘显示
|
|
||||||
logging_error!(Type::Lightweight, true, Tray::global().update_part().await);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 添加从轻量模式恢复的函数
|
// 添加从轻量模式恢复的函数
|
||||||
@@ -189,9 +183,6 @@ pub async fn exit_lightweight_mode() {
|
|||||||
|
|
||||||
// 重置UI就绪状态
|
// 重置UI就绪状态
|
||||||
crate::utils::resolve::ui::reset_ui_ready();
|
crate::utils::resolve::ui::reset_ui_ready();
|
||||||
|
|
||||||
// 更新托盘显示
|
|
||||||
let _tray = crate::core::tray::Tray::global();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
|
|||||||
Reference in New Issue
Block a user