diff --git a/desktop-client/main.py b/desktop-client/main.py index b4afe28..d9a2080 100644 --- a/desktop-client/main.py +++ b/desktop-client/main.py @@ -149,8 +149,10 @@ class VlcSyncApp(QMainWindow): QMessageBox.information(self, "File Required", f"To join this room, you need to select:\n\nName: {req_name}\nSize: {req_size / (1024*1024):.1f} MB") + ext = os.path.splitext(req_name)[1].lower() + file_filter = f"Video Files (*{ext});;All Files (*)" if ext else "All Files (*)" file_path, _ = QFileDialog.getOpenFileName( - self, f"Select {req_name}", "", f"Required File ({req_name})" + self, f"Select {req_name}", "", file_filter ) if file_path: