Do not use mime apps fallback, will be adjusted in session
This commit is contained in:
parent
a84ec1eb0d
commit
1c7561accf
1 changed files with 1 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue