mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
fix: update lightweight mode implementation and fix MacOS dock icon visibility
This commit is contained in:
@@ -5,7 +5,7 @@ use tauri::{Listener, Manager};
|
||||
use crate::{
|
||||
config::Config,
|
||||
core::{handle, timer::Timer},
|
||||
log_err,
|
||||
log_err, AppHandleManager,
|
||||
};
|
||||
|
||||
const LIGHT_WEIGHT_TASK_UID: &str = "light_weight_task";
|
||||
@@ -32,6 +32,7 @@ pub fn entry_lightweight_mode() {
|
||||
if let Some(webview) = window.get_webview_window("main") {
|
||||
let _ = webview.destroy();
|
||||
}
|
||||
AppHandleManager::global().set_activation_policy_accessory();
|
||||
println!("[lightweight_mode] 轻量模式已开启");
|
||||
log::info!(target: "app", "[lightweight_mode] 轻量模式已开启");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user