Fix build
This commit is contained in:
parent
6168d3c849
commit
b44bef59c0
2 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue