fix: undo #899 regression

This commit is contained in:
Travis Abendshien
2025-09-11 22:42:22 -07:00
parent 6e6a91aaf4
commit 8a4d4def07

View File

@@ -367,7 +367,7 @@ class ItemThumb(FlowWidget):
if ext and ext.startswith(".") is False:
ext = "." + ext
media_types: set[MediaType] = MediaCategories.get_types(ext)
if ext and (
if (
not MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_TYPES)
or MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_RAW_TYPES)
or MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_VECTOR_TYPES)