1
0
mirror of https://github.com/ciromattia/kcc synced 2026-05-19 22:11:59 +00:00

Keep metadata editor dialog open when error occur during bulks save

This commit is contained in:
jaroslawjanas
2025-12-12 00:02:43 +01:00
parent 1bd2073c80
commit 9de0728b0e

View File

@@ -1553,9 +1553,10 @@ class KCCGUI_MetaEditor(KCC_ui_editor.Ui_editorDialog):
if errors:
GUI.showDialog("Some files failed to save:\n\n" + "\n".join(errors[:10]) +
(f"\n...and {len(errors) - 10} more" if len(errors) > 10 else ""), 'error')
self.statusLabel.setText('Errors occurred.')
else:
self.statusLabel.setText(f'Successfully updated {total} files.')
self.ui.close()
self.ui.close()
else:
for field in (self.volumeLine, self.numberLine):
if field.text().isnumeric() or self.cleanData(field.text()) == '':