Merge pull request #840 from ynput/enhancement/AY-1654_Publish-Report-Viewer-txt-files

Publish report viewer: Don't validate extension of dropped file
This commit is contained in:
Jakub Trllo 2024-08-16 15:30:39 +02:00 committed by GitHub
commit 49b1d0d1ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -572,8 +572,7 @@ class LoadedFilesWidget(QtWidgets.QWidget):
filepaths = []
for url in mime_data.urls():
filepath = url.toLocalFile()
ext = os.path.splitext(filepath)[-1]
if os.path.exists(filepath) and ext == ".json":
if os.path.exists(filepath):
filepaths.append(filepath)
self._add_filepaths(filepaths)
event.accept()