mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-07 10:59:49 +00:00
When exporting, Pixelorama now remembers the last exported path
This commit is contained in:
parent
b3fa8870f8
commit
9a313821dc
|
@ -298,6 +298,10 @@ msgstr ""
|
||||||
msgid "Rename Layout"
|
msgid "Rename Layout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. Refers to the current layout of the user interface.
|
||||||
|
msgid "Current layout"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Are you sure you want to delete this layout?"
|
msgid "Are you sure you want to delete this layout?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -2128,6 +2132,10 @@ msgstr ""
|
||||||
msgid "File failed to save. Error code %s"
|
msgid "File failed to save. Error code %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. Appears when the user attempts to export a project as a video, but the process fails. FFMPEG is the external software used to export videos.
|
||||||
|
msgid "Video failed to export. Ensure that FFMPEG is installed correctly."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "File(s) exported"
|
msgid "File(s) exported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -279,6 +279,9 @@ func export_processed_images(
|
||||||
if is_using_ffmpeg(project.file_format):
|
if is_using_ffmpeg(project.file_format):
|
||||||
var video_exported := export_video(export_paths)
|
var video_exported := export_video(export_paths)
|
||||||
if not video_exported:
|
if not video_exported:
|
||||||
|
Global.popup_error(
|
||||||
|
tr("Video failed to export. Ensure that FFMPEG is installed correctly.")
|
||||||
|
)
|
||||||
return false
|
return false
|
||||||
else:
|
else:
|
||||||
var exporter: AImgIOBaseExporter
|
var exporter: AImgIOBaseExporter
|
||||||
|
@ -299,7 +302,6 @@ func export_processed_images(
|
||||||
gif_export_thread.wait_to_finish()
|
gif_export_thread.wait_to_finish()
|
||||||
gif_export_thread.start(export_animated.bind(details))
|
gif_export_thread.start(export_animated.bind(details))
|
||||||
else:
|
else:
|
||||||
var succeeded := true
|
|
||||||
for i in range(processed_images.size()):
|
for i in range(processed_images.size()):
|
||||||
if OS.has_feature("web"):
|
if OS.has_feature("web"):
|
||||||
if project.file_format == FileFormat.PNG:
|
if project.file_format == FileFormat.PNG:
|
||||||
|
@ -333,10 +335,9 @@ func export_processed_images(
|
||||||
Global.popup_error(
|
Global.popup_error(
|
||||||
tr("File failed to save. Error code %s (%s)") % [err, error_string(err)]
|
tr("File failed to save. Error code %s (%s)") % [err, error_string(err)]
|
||||||
)
|
)
|
||||||
succeeded = false
|
return false
|
||||||
if succeeded:
|
|
||||||
Global.notification_label("File(s) exported")
|
|
||||||
|
|
||||||
|
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)
|
||||||
project.was_exported = true
|
project.was_exported = true
|
||||||
|
@ -348,6 +349,8 @@ func export_processed_images(
|
||||||
Global.top_menu_container.file_menu.set_item_text(
|
Global.top_menu_container.file_menu.set_item_text(
|
||||||
Global.FileMenu.EXPORT, tr("Export") + " %s" % file_name_with_ext
|
Global.FileMenu.EXPORT, tr("Export") + " %s" % file_name_with_ext
|
||||||
)
|
)
|
||||||
|
project.directory_path = export_paths[0].get_base_dir()
|
||||||
|
Global.config_cache.set_value("data", "current_dir", project.directory_path)
|
||||||
return true
|
return true
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue