1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Set SaveSprite's current path when opening a project

This commit is contained in:
OverloadedOrama 2020-02-16 18:18:12 +02:00
parent 5a5484d4e0
commit 30ce04b7f3

View file

@ -473,6 +473,7 @@ func _on_OpenSprite_file_selected(path : String) -> void:
file.close()
current_save_path = path
$SaveSprite.current_path = path
$ExportSprites.current_export_path = path.trim_suffix(".pxo") + ".png"
$ExportSprites.current_path = $ExportSprites.current_export_path
file_menu.set_item_text(2, tr("Save") + " %s" % path.get_file())