From b44bef59c04c356bd449b64ef8192fe905953558 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 10 Jul 2025 15:00:52 -0600 Subject: [PATCH] Fix build --- src/app.rs | 2 +- src/thumbnail_cacher.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 5fa7beb..5865465 100644 --- a/src/app.rs +++ b/src/app.rs @@ -5365,7 +5365,7 @@ impl Application for App { struct TimeSubscription; let mut subscriptions = vec![ - event::listen_with(|event, status, _window_id| match event { + event::listen_with(|event, status, window_id| match event { Event::Keyboard(KeyEvent::KeyPressed { key, modifiers, diff --git a/src/thumbnail_cacher.rs b/src/thumbnail_cacher.rs index 3aeca0b..0c76c44 100644 --- a/src/thumbnail_cacher.rs +++ b/src/thumbnail_cacher.rs @@ -341,6 +341,7 @@ pub enum CachedThumbnail { } static THUMBNAIL_CACHE_BASE_DIR: Lazy> = 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);