Do not prefer svg in mime icon cache
This commit is contained in:
parent
ceb7adbb94
commit
a7383ae174
1 changed files with 1 additions and 5 deletions
|
|
@ -31,11 +31,7 @@ impl MimeIconCache {
|
||||||
.entry(key)
|
.entry(key)
|
||||||
.or_insert_with_key(|key| {
|
.or_insert_with_key(|key| {
|
||||||
for icon_name in self.shared_mime_info.lookup_icon_names(&key.mime) {
|
for icon_name in self.shared_mime_info.lookup_icon_names(&key.mime) {
|
||||||
if let Some(path) = icon::from_name(icon_name)
|
if let Some(path) = icon::from_name(icon_name).size(key.size).path() {
|
||||||
.prefer_svg(true)
|
|
||||||
.size(key.size)
|
|
||||||
.path()
|
|
||||||
{
|
|
||||||
return Some(icon::from_path(path));
|
return Some(icon::from_path(path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue