Do not use mime apps fallback, will be adjusted in session

This commit is contained in:
Jeremy Soller 2024-03-04 12:49:23 -07:00
parent a84ec1eb0d
commit 1c7561accf
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -241,13 +241,7 @@ pub fn scan_path(tab_path: &PathBuf, sizes: IconSizes) -> Vec<Item> {
)
};
let mut open_with = mime_apps(&mime);
if open_with.is_empty() {
//TODO: more fallbacks
if mime.type_() == "text" {
open_with = mime_apps(&mime::TEXT_PLAIN);
}
}
let open_with = mime_apps(&mime);
let thumbnail_res_opt = if mime.type_() == "image" {
None