Support uppercase extensions in image preview (#19304)

This commit is contained in:
Peter Tripp
2024-10-17 08:48:18 -04:00
committed by GitHub
parent 8c910540ed
commit 5ad392035e
+2
View File
@@ -36,7 +36,9 @@ impl project::Item for ImageItem {
.path
.extension()
.and_then(OsStr::to_str)
.map(str::to_lowercase)
.unwrap_or_default();
let ext = ext.as_str();
// Only open the item if it's a binary image (no SVGs, etc.)
// Since we do not have a way to toggle to an editor