mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
set max pb limit to 10
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user