mirror of
https://github.com/ciromattia/kcc
synced 2026-10-12 20:42:31 +00:00
Keep metadata editor dialog open when error occur during bulks save
This commit is contained in:
@@ -1553,6 +1553,7 @@ class KCCGUI_MetaEditor(KCC_ui_editor.Ui_editorDialog):
|
|||||||
if errors:
|
if errors:
|
||||||
GUI.showDialog("Some files failed to save:\n\n" + "\n".join(errors[:10]) +
|
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')
|
(f"\n...and {len(errors) - 10} more" if len(errors) > 10 else ""), 'error')
|
||||||
|
self.statusLabel.setText('Errors occurred.')
|
||||||
else:
|
else:
|
||||||
self.statusLabel.setText(f'Successfully updated {total} files.')
|
self.statusLabel.setText(f'Successfully updated {total} files.')
|
||||||
self.ui.close()
|
self.ui.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user