mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-23 23:35:57 +02:00
Gate set_mobile_config_dir behind cfg(mobile) to fix desktop dead-code warning (#183)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user