Do not prefer svg in mime icon cache

This commit is contained in:
Jeremy Soller 2024-05-02 15:54:00 -06:00
parent ceb7adbb94
commit a7383ae174
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -31,11 +31,7 @@ impl MimeIconCache {
.entry(key)
.or_insert_with_key(|key| {
for icon_name in self.shared_mime_info.lookup_icon_names(&key.mime) {
if let Some(path) = icon::from_name(icon_name)
.prefer_svg(true)
.size(key.size)
.path()
{
if let Some(path) = icon::from_name(icon_name).size(key.size).path() {
return Some(icon::from_path(path));
}
}