mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:23:44 +08:00
refactor: remove deprecated lightweight module and adjust macOS activation policy
This commit is contained in:
parent
53023fa189
commit
c1abb78cf9
@ -1 +0,0 @@
|
|||||||
|
|
@ -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;
|
||||||
|
@ -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] 轻量模式已开启");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user