mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 10:24:44 -04:00
Fixed issue where imported projects were not remembering the directory_path and file_name when switching tabs.
This commit is contained in:
parent
7dd9b36cdc
commit
cff3f9f6b2
2 changed files with 3 additions and 1 deletions
|
@ -116,6 +116,8 @@ func open_pxo_file(path : String, untitled_backup : bool = false) -> void:
|
|||
Global.config_cache.save("user://cache.ini")
|
||||
Export.file_name = path.get_file().trim_suffix(".pxo")
|
||||
Export.directory_path = path.get_base_dir()
|
||||
new_project.directory_path = Export.directory_path
|
||||
new_project.file_name = Export.file_name
|
||||
Export.was_exported = false
|
||||
Global.file_menu.get_popup().set_item_text(4, tr("Save") + " %s" % path.get_file())
|
||||
Global.file_menu.get_popup().set_item_text(6, tr("Export"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue