fix(profile): avoid freeing nodes during their own signal

Defer frame selection and use queued deletion when rebuilding frame cards, avatars, Guest Book cards, and legend chips. Adds a regression check that presses a frame card and verifies the grid stays stable.
This commit is contained in:
Ratdoku Builder committed 2026-12-02 22:48:08 -06:00
1 parent 3c2ead0be1
commit 48c14864a4
5 files changed
+41 -12

No files matched your search

+2 -2
View File
@@ -99,7 +99,7 @@ func _build_crumb_frame() -> void:
if crumb_frame_id == selected and crumb_frame_holder.get_child_count() > 0:
return
for child in crumb_frame_holder.get_children():
child.free()
child.queue_free()
var frame := Frames.frame_panel(selected, 56)
var portrait := TextureRect.new()
portrait.custom_minimum_size = Vector2(44, 44)
@@ -145,7 +145,7 @@ func refresh() -> void:
return
_build_crumb_frame()
for child in grid.get_children():
child.free()
child.queue_free()
var guests := Guests.all()
var unlocked := SaveGame.unlocked_count(guests)