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

Fix memory leak when previewing layouts in the ManageLayouts dialog

This commit is contained in:
Emmanouil Papadeas 2024-02-12 00:37:23 +02:00
parent d7c356f1d4
commit b2f511c45b
2 changed files with 2 additions and 0 deletions

View file

@ -24,6 +24,7 @@ Built using Godot 3.5.2
### Fixed
- Memory usage has been greatly optimized when doing operations such as drawing, image effects, selecting, transforming, etc, as the images stored in memory are now compressed. [#883](https://github.com/Orama-Interactive/Pixelorama/issues/883)
- Fixed memory leak when applying image effects. [7235617db7c21837edc7ba7b95f2e7eeb1140691](https://github.com/Orama-Interactive/Pixelorama/commit/7235617db7c21837edc7ba7b95f2e7eeb1140691)
- Fixed memory leak when previewing layouts in the Manage Layouts dialog.
- Tool shortcuts can now work with <kbd>Control</kbd>. [#935](https://github.com/Orama-Interactive/Pixelorama/issues/935)
- Optimize canvas drawing by only updating it when the image(s) have changed. [ac6a4db43d9296ebc03e639d8199dd3878a25d86](https://github.com/Orama-Interactive/Pixelorama/commit/ac6a4db43d9296ebc03e639d8199dd3878a25d86)
- Fix bug where using shortcuts to switch between frames also moved the selection, causing deletions.

View file

@ -104,6 +104,7 @@ func _on_DeleteConfirmation_confirmed() -> void:
func refresh_preview():
for tab in mimic_ui.get_tabs():
mimic_ui.remove_child(tab)
tab.queue_free()
for item in Global.top_menu_container.ui.get_tabs():
var box := TextEdit.new()
box.name = item.name