From c763fdd23361a32dd09b773f380aae2a931ad8da Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Sun, 9 Nov 2025 16:05:32 +0800 Subject: [PATCH] fix: update configuration data access from latest_arc to data_arc for TUN and system proxy settings --- src-tauri/src/feat/window.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/feat/window.rs b/src-tauri/src/feat/window.rs index e17e7f29d..876ba4432 100644 --- a/src-tauri/src/feat/window.rs +++ b/src-tauri/src/feat/window.rs @@ -47,7 +47,7 @@ pub async fn clean_async() -> bool { let tun_task = async { let tun_enabled = Config::verge() .await - .latest_arc() + .data_arc() .enable_tun_mode .unwrap_or(false); @@ -95,7 +95,7 @@ pub async fn clean_async() -> bool { // 检查系统代理是否开启 let sys_proxy_enabled = Config::verge() .await - .latest_arc() + .data_arc() .enable_system_proxy .unwrap_or(false); @@ -171,7 +171,7 @@ pub async fn clean_async() -> bool { { let sys_proxy_enabled = Config::verge() .await - .latest_arc() + .data_arc() .enable_system_proxy .unwrap_or(false); @@ -311,7 +311,7 @@ pub async fn hide() { let enable_auto_light_weight_mode = Config::verge() .await - .latest_arc() + .data_arc() .enable_auto_light_weight_mode .unwrap_or(false);