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

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

@ -25,7 +25,7 @@ PinyaColada, Rémi Verschelde (akien-mga), dasimonde
- Made .pxo saving safer. In case of a crash while parsing JSON data, the old .pxo file, if it exists, will no longer be overwritten and corrupted.
- Fixed issue where the user could grab and could not let go of the focus of guides even when they were invisible.
- Fixed issues where fully transparent color could not be picked. One of these cases was [#364](https://github.com/Orama-Interactive/Pixelorama/issues/364).
- Fixed "Export" option in the File menu not working properly when switching between projects, and not remembering the directory path and file name, if the project is an imported image and the tabs were switched.
- Fixed "Export" option in the File menu not working properly and not remembering the directory path and file name when switching between projects (tabs).
- Fixed Chinese and Korean characters not displaying properly in the Splash dialog and the About dialog.
- Fixed crash when importing an incorrectly formatted GIMP Color Palette file. ([#363](https://github.com/Orama-Interactive/Pixelorama/issues/363))
<br><br>

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