fix: fixed insert exif feature

This commit is contained in:
Mr Finchum 2025-03-27 11:07:58 +00:00
parent ef92ffb5b9
commit d356937e41
2 changed files with 5 additions and 1 deletions

View file

@ -341,7 +341,7 @@ class OptimaLab35(QMainWindow, Ui_MainWindow):
def control_ending(self, name_lst):
for item in name_lst:
try:
int(item[-1])
int(item[-5])
except ValueError:
return False
return True
@ -377,6 +377,7 @@ class OptimaLab35(QMainWindow, Ui_MainWindow):
return
image_list = self.image_list_from_folder(self.settings["input_folder"])
print(image_list)
if not self.control_ending(image_list):
QMessageBox.warning(self, "Warning", f"Error: one or more filenames do not end on a number.\nCan not adjust time")
self.toggle_buttons(True)