When joining a room only allow clients to select a video with the same name as the one already selected by room creator

This commit is contained in:
Peter Stockings
2026-03-02 22:00:51 +11:00
parent 475fdbb2b8
commit b587b5e87d

View File

@@ -457,7 +457,7 @@ 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") 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")
file_path, _ = QFileDialog.getOpenFileName( file_path, _ = QFileDialog.getOpenFileName(
self, f"Select {req_name}", "", "Video Files (*.mp4 *.mkv *.avi *.mov *.webm);;All Files (*)" self, f"Select {req_name}", "", f"Required File ({req_name})"
) )
if file_path: if file_path: