From b643eeb8846727eb5c713ac07580c0f163bd4a3b Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Sun, 28 Jun 2026 19:08:01 +0200 Subject: [PATCH] Gate set_mobile_config_dir behind cfg(mobile) to fix desktop dead-code warning (#183) --- src-tauri/src/commands.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 4bdf2d7..428c55b 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -2424,6 +2424,7 @@ pub fn ai_ask( // path resolver, since dirs::config_dir() is not reliable in the app sandbox. static MOBILE_CONFIG_DIR: std::sync::OnceLock = std::sync::OnceLock::new(); +#[cfg(mobile)] pub fn set_mobile_config_dir(path: std::path::PathBuf) { let _ = MOBILE_CONFIG_DIR.set(path); }