set max pb limit to 10

This commit is contained in:
leminlimez
2025-03-20 21:02:44 -04:00
parent a32f59767d
commit 6466663e17

View File

@@ -924,13 +924,13 @@ class MainWindow(QtWidgets.QMainWindow):
tweaks["PosterBoard"].resetting = False
if selected_files != None and len(selected_files) > 0:
# user selected files, add them
# but limit to 15
if len(selected_files) + len(tweaks["PosterBoard"].zip_paths) > 15:
# but limit to 10
if len(selected_files) + len(tweaks["PosterBoard"].zip_paths) > 10:
# alert that there are too many
detailsBox = QtWidgets.QMessageBox()
detailsBox.setIcon(QtWidgets.QMessageBox.Critical)
detailsBox.setWindowTitle("Error!")
detailsBox.setText("You selected too many descriptors! The limit is 15.")
detailsBox.setText("You selected too many descriptors! The limit is 10.")
detailsBox.exec()
else:
tweaks["PosterBoard"].zip_paths.extend(selected_files)