Fixed issue where imported projects were not remembering the directory_path and file_name when switching tabs.

This commit is contained in:
Manolis Papadeas 2020-10-29 22:35:20 +02:00
parent 7dd9b36cdc
commit cff3f9f6b2
2 changed files with 3 additions and 1 deletions

View file

@ -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"))