refactor: remove deprecated lightweight module and adjust macOS activation policy

This commit is contained in:
Tunglies 2025-03-24 20:11:38 +08:00
parent 53023fa189
commit c1abb78cf9
3 changed files with 1 additions and 2 deletions

View File

@ -1 +0,0 @@

View File

@ -1,7 +1,6 @@
mod backup; mod backup;
mod clash; mod clash;
mod config; mod config;
mod lightweight;
mod profile; mod profile;
mod proxy; mod proxy;
mod window; mod window;

View File

@ -32,6 +32,7 @@ pub fn entry_lightweight_mode() {
if let Some(webview) = window.get_webview_window("main") { if let Some(webview) = window.get_webview_window("main") {
let _ = webview.destroy(); let _ = webview.destroy();
} }
#[cfg(target_os = "macos")]
AppHandleManager::global().set_activation_policy_accessory(); AppHandleManager::global().set_activation_policy_accessory();
println!("[lightweight_mode] 轻量模式已开启"); println!("[lightweight_mode] 轻量模式已开启");
log::info!(target: "app", "[lightweight_mode] 轻量模式已开启"); log::info!(target: "app", "[lightweight_mode] 轻量模式已开启");