feat: support MIME subclasses in file chooser dialog
This commit is contained in:
parent
3ef7913abd
commit
43a4228ca4
2 changed files with 11 additions and 1 deletions
|
|
@ -124,3 +124,11 @@ pub fn parent_mime_types(mime: &Mime) -> Option<Vec<Mime>> {
|
|||
let mime_icon_cache = MIME_ICON_CACHE.lock().unwrap();
|
||||
mime_icon_cache.shared_mime_info.get_parents_aliased(mime)
|
||||
}
|
||||
|
||||
pub fn is_mime_subclass_of(mime_type: &Mime, base: &Mime) -> bool {
|
||||
let mime_icon_cache = MIME_ICON_CACHE.lock().unwrap();
|
||||
|
||||
mime_icon_cache
|
||||
.shared_mime_info
|
||||
.mime_type_subclass(mime_type, base)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue