fix: update configuration data access from latest_arc to data_arc in Clash and WebDAV commands and init windows

This commit is contained in:
Tunglies
2025-11-09 21:26:11 +08:00
parent f5160ef277
commit 7f267fa727
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -227,7 +227,7 @@ impl Hotkey {
let is_enable_global_hotkey = Config::verge()
.await
.latest_arc()
.data_arc()
.enable_global_hotkey
.unwrap_or(true);
@@ -264,7 +264,7 @@ singleton_with_logging!(Hotkey, INSTANCE, "Hotkey");
impl Hotkey {
pub async fn init(&self, skip: bool) -> Result<()> {
let verge = Config::verge().await;
let enable_global_hotkey = !skip && verge.latest_arc().enable_global_hotkey.unwrap_or(true);
let enable_global_hotkey = !skip && verge.data_arc().enable_global_hotkey.unwrap_or(true);
logging!(
debug,
@@ -274,7 +274,7 @@ impl Hotkey {
);
// Extract hotkeys data before async operations
let hotkeys = verge.latest_arc().hotkeys.as_ref().cloned();
let hotkeys = verge.data_arc().hotkeys.as_ref().cloned();
if let Some(hotkeys) = hotkeys {
logging!(