mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Fix previous commit to only show the notification once
This commit is contained in:
parent
272ea63615
commit
d68032fbda
|
@ -210,6 +210,7 @@ func export_processed_images(
|
||||||
gif_export_thread.wait_to_finish()
|
gif_export_thread.wait_to_finish()
|
||||||
gif_export_thread.start(self, "export_animated", details)
|
gif_export_thread.start(self, "export_animated", details)
|
||||||
else:
|
else:
|
||||||
|
var succeeded := true
|
||||||
for i in range(processed_images.size()):
|
for i in range(processed_images.size()):
|
||||||
if OS.get_name() == "HTML5":
|
if OS.get_name() == "HTML5":
|
||||||
JavaScript.download_buffer(
|
JavaScript.download_buffer(
|
||||||
|
@ -223,8 +224,9 @@ func export_processed_images(
|
||||||
Global.error_dialog.set_text(tr("File failed to save. Error code %s") % err)
|
Global.error_dialog.set_text(tr("File failed to save. Error code %s") % err)
|
||||||
Global.error_dialog.popup_centered()
|
Global.error_dialog.popup_centered()
|
||||||
Global.dialog_open(true)
|
Global.dialog_open(true)
|
||||||
else:
|
succeeded = false
|
||||||
Global.notification_label("File(s) exported")
|
if succeeded:
|
||||||
|
Global.notification_label("File(s) exported")
|
||||||
|
|
||||||
# Store settings for quick export and when the dialog is opened again
|
# Store settings for quick export and when the dialog is opened again
|
||||||
var file_name_with_ext := project.file_name + file_format_string(project.file_format)
|
var file_name_with_ext := project.file_name + file_format_string(project.file_format)
|
||||||
|
|
Loading…
Reference in a new issue