Gate set_mobile_config_dir behind cfg(mobile) to fix desktop dead-code warning (#183)

This commit is contained in:
Yuri Karamian
2026-06-28 19:08:01 +02:00
parent eb042e5760
commit b643eeb884
+1
View File
@@ -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::path::PathBuf> = std::sync::OnceLock::new();
#[cfg(mobile)]
pub fn set_mobile_config_dir(path: std::path::PathBuf) {
let _ = MOBILE_CONFIG_DIR.set(path);
}