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 21:27:01 +02:00
parent 2b2a65e791
commit 75d13a0dd9

View file

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