From 597db5d44e4ec0898f1725dd702f9309c3751db2 Mon Sep 17 00:00:00 2001 From: OverloadedOrama Date: Sat, 28 Sep 2024 23:19:14 +0300 Subject: [PATCH] Fix projects being saved with the wrong name on the Web version --- src/Main.gd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Main.gd b/src/Main.gd index 52baa12ad..982e197df 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -452,8 +452,7 @@ func save_project(path: String) -> void: project_to_save = changed_projects_on_quit[0] var include_blended := false if OS.get_name() == "Web": - var file_name: String = save_sprite_html5.get_node("%FileNameLineEdit").text - file_name += ".pxo" + var file_name := project_to_save.name + ".pxo" path = "user://".path_join(file_name) include_blended = save_sprite_html5.get_node("%IncludeBlended").button_pressed else: