chore: update dependencies
Updates all dependencies other than ICU. Enables the `dbus-config` libcosmic feature to fix theming responsiveness. Also prevents the trash and network drive layer container from touching the edge of the window.
This commit is contained in:
parent
4d642ee3fa
commit
3ee1a07f09
12 changed files with 296 additions and 619 deletions
|
|
@ -2,8 +2,12 @@
|
|||
|
||||
use cosmic::widget::icon;
|
||||
use mime_guess::Mime;
|
||||
use once_cell::sync::Lazy;
|
||||
use std::{collections::HashMap, fs, path::Path, sync::Mutex};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
fs,
|
||||
path::Path,
|
||||
sync::{LazyLock, Mutex},
|
||||
};
|
||||
|
||||
pub const FALLBACK_MIME_ICON: &str = "text-x-generic";
|
||||
|
||||
|
|
@ -48,7 +52,8 @@ impl MimeIconCache {
|
|||
.clone()
|
||||
}
|
||||
}
|
||||
static MIME_ICON_CACHE: Lazy<Mutex<MimeIconCache>> = Lazy::new(|| Mutex::new(MimeIconCache::new()));
|
||||
static MIME_ICON_CACHE: LazyLock<Mutex<MimeIconCache>> =
|
||||
LazyLock::new(|| Mutex::new(MimeIconCache::new()));
|
||||
|
||||
pub fn mime_for_path<P: AsRef<Path>>(
|
||||
path: P,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue