Fix build

This commit is contained in:
Jeremy Soller 2025-07-10 15:00:52 -06:00
parent 6168d3c849
commit b44bef59c0
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
2 changed files with 2 additions and 1 deletions

View file

@ -341,6 +341,7 @@ pub enum CachedThumbnail {
}
static THUMBNAIL_CACHE_BASE_DIR: Lazy<Option<PathBuf>> = Lazy::new(|| {
#[cfg(feature = "desktop")]
if let Ok(base_dirs) = xdg::BaseDirectories::new() {
let base_dir = base_dirs.get_cache_home().join("thumbnails");
return Some(base_dir);