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 tweaks["PosterBoard"].resetting = False
if selected_files != None and len(selected_files) > 0: if selected_files != None and len(selected_files) > 0:
# user selected files, add them # user selected files, add them
# but limit to 15 # but limit to 10
if len(selected_files) + len(tweaks["PosterBoard"].zip_paths) > 15: if len(selected_files) + len(tweaks["PosterBoard"].zip_paths) > 10:
# alert that there are too many # alert that there are too many
detailsBox = QtWidgets.QMessageBox() detailsBox = QtWidgets.QMessageBox()
detailsBox.setIcon(QtWidgets.QMessageBox.Critical) detailsBox.setIcon(QtWidgets.QMessageBox.Critical)
detailsBox.setWindowTitle("Error!") 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() detailsBox.exec()
else: else:
tweaks["PosterBoard"].zip_paths.extend(selected_files) tweaks["PosterBoard"].zip_paths.extend(selected_files)