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

Fix memory leak when previewing layouts in the ManageLayouts dialog

This commit is contained in:
Emmanouil Papadeas 2024-02-11 16:02:15 +02:00
parent c4a4bd4602
commit be7427fd9c

View file

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