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

Fix projects being saved with the wrong name on the Web version

This commit is contained in:
OverloadedOrama 2024-09-28 23:19:14 +03:00
parent dbe48a4681
commit 597db5d44e

View file

@ -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: