1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Don't reset export status when a pxo is saved

This commit is contained in:
Manolis Papadeas 2022-03-21 23:07:57 +02:00
parent 57729ef4e9
commit 4cf9c57e84
2 changed files with 5 additions and 6 deletions

View file

@ -176,11 +176,11 @@ func export_processed_images(ignore_overwrites: bool, export_dialog: AcceptDialo
# Check if the file already exists
var file_check: File = File.new()
if file_check.file_exists(export_path):
# Ask user if he want's to overwrite the file
# Ask user if they want to overwrite the file
if not was_exported or (was_exported and not ignore_overwrites):
# Overwrite existing file?
export_dialog.open_file_exists_alert_popup(file_exists_alert % export_path)
# Stops the function until the user decides if he want's to overwrite
# Stops the function until the user decides if they want to overwrite
yield(export_dialog, "resume_export_function")
if stop_export:
# User decided to stop export

View file

@ -376,10 +376,9 @@ func save_pxo_file(
# Set last opened project path and save
Global.config_cache.set_value("preferences", "last_project_path", path)
Global.config_cache.save("user://cache.ini")
Export.file_name = path.get_file().trim_suffix(".pxo")
Export.directory_path = path.get_base_dir()
Export.was_exported = false
project.was_exported = false
if !project.was_exported:
Export.file_name = path.get_file().trim_suffix(".pxo")
Export.directory_path = path.get_base_dir()
Global.top_menu_container.file_menu.set_item_text(4, tr("Save") + " %s" % path.get_file())
save_project_to_recent_list(path)