Revert "feat: update Cargo.toml for 2024 edition and optimize release profiles (#4681)"

This reverts commit 31e3104c7f.
This commit is contained in:
Tunglies
2025-09-08 21:48:09 +08:00
parent 31e3104c7f
commit 55b95a1985
51 changed files with 793 additions and 782 deletions

View File

@@ -7,7 +7,6 @@ use crate::{
utils::{logging::Type, window_manager::WindowManager},
};
#[cfg(target_os = "macos")]
use crate::logging_error;
use anyhow::{Context, Result};
@@ -137,13 +136,13 @@ pub async fn entry_lightweight_mode() {
result
);
if let Some(window) = handle::Handle::global().get_window()
&& let Some(webview) = window.get_webview_window("main")
{
let _ = webview.destroy();
if let Some(window) = handle::Handle::global().get_window() {
if let Some(webview) = window.get_webview_window("main") {
let _ = webview.destroy();
}
#[cfg(target_os = "macos")]
handle::Handle::global().set_activation_policy_accessory();
}
#[cfg(target_os = "macos")]
handle::Handle::global().set_activation_policy_accessory();
set_lightweight_mode(true).await;
let _ = cancel_light_weight_timer();
ProxyRequestCache::global().clean_default_keys();