fix: update lightweight mode implementation and fix MacOS dock icon visibility

This commit is contained in:
Tunglies
2025-03-24 19:16:21 +08:00
parent e330d75a89
commit 09f6917638
6 changed files with 12 additions and 12 deletions

View File

@@ -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] 轻量模式已开启");
}