We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e6a91a commit 8a4d4deCopy full SHA for 8a4d4de
src/tagstudio/qt/mixed/item_thumb.py
@@ -367,7 +367,7 @@ def set_extension(self, filename: Path) -> None:
367
if ext and ext.startswith(".") is False:
368
ext = "." + ext
369
media_types: set[MediaType] = MediaCategories.get_types(ext)
370
- if ext and (
+ if (
371
not MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_TYPES)
372
or MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_RAW_TYPES)
373
or MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_VECTOR_TYPES)
0 commit comments