diff --git a/src/Autoload/Export.gd b/src/Autoload/Export.gd index 798aa8b3e..befd3d9d8 100644 --- a/src/Autoload/Export.gd +++ b/src/Autoload/Export.gd @@ -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 diff --git a/src/Autoload/OpenSave.gd b/src/Autoload/OpenSave.gd index 79b7429b8..6d30e769a 100644 --- a/src/Autoload/OpenSave.gd +++ b/src/Autoload/OpenSave.gd @@ -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)