Skip to content

Commit 8a4d4de

Browse files
committed
fix: undo #899 regression
1 parent 6e6a91a commit 8a4d4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tagstudio/qt/mixed/item_thumb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def set_extension(self, filename: Path) -> None:
367367
if ext and ext.startswith(".") is False:
368368
ext = "." + ext
369369
media_types: set[MediaType] = MediaCategories.get_types(ext)
370-
if ext and (
370+
if (
371371
not MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_TYPES)
372372
or MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_RAW_TYPES)
373373
or MediaCategories.is_ext_in_category(ext, MediaCategories.IMAGE_VECTOR_TYPES)

0 commit comments

Comments
 (0)