From 75d13a0dd9923a7f47370c4579a7395fd9d5d063 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Mon, 18 Dec 2023 21:27:01 +0200 Subject: [PATCH] When saving, don't include ".pxo" in the project name --- src/Autoload/OpenSave.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autoload/OpenSave.gd b/src/Autoload/OpenSave.gd index e95695f81..33a5f04a0 100644 --- a/src/Autoload/OpenSave.gd +++ b/src/Autoload/OpenSave.gd @@ -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(