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 09f6917638
commit f50fe9159d
3 changed files with 1 additions and 2 deletions

View File

@ -1 +0,0 @@

View File

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

View File

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