Defining image extensions only in one place

This commit is contained in:
2025-12-11 15:50:14 +02:00
parent 8eb1cc8c86
commit 9ba44043ef
7 changed files with 14 additions and 24 deletions

View File

@@ -168,7 +168,7 @@ class AnnotationTab(QWidget):
self,
"Select Image",
start_dir,
"Images (*.jpg *.jpeg *.png *.tif *.tiff *.bmp)",
"Images (*" + " *".join(Image.SUPPORTED_EXTENSIONS) + ")",
)
if not file_path: