1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

When saving, don't include ".pxo" in the project name

This commit is contained in:
Emmanouil Papadeas 2023-12-18 20:56:38 +02:00
parent 10ca31b916
commit 42e8c8cb50

View file

@ -324,7 +324,7 @@ func save_pxo_file(
path: String, autosave: bool, include_blended := false, project := Global.current_project path: String, autosave: bool, include_blended := false, project := Global.current_project
) -> bool: ) -> bool:
if !autosave: if !autosave:
project.name = path.get_file() project.name = path.get_file().trim_suffix(".pxo")
var serialized_data := project.serialize() var serialized_data := project.serialize()
if !serialized_data: if !serialized_data:
Global.error_dialog.set_text( Global.error_dialog.set_text(