mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 01:23:43 +08:00
refactor: remove deprecated lightweight module and adjust macOS activation policy
This commit is contained in:
parent
09f6917638
commit
f50fe9159d
@ -1 +0,0 @@
|
||||
|
@ -1,7 +1,6 @@
|
||||
mod backup;
|
||||
mod clash;
|
||||
mod config;
|
||||
mod lightweight;
|
||||
mod profile;
|
||||
mod proxy;
|
||||
mod window;
|
||||
|
@ -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] 轻量模式已开启");
|
||||
|
Loading…
x
Reference in New Issue
Block a user