Fix Section.accessory setter not updating view bindings

This commit is contained in:
Rapptz
2025-10-08 08:52:11 -04:00
parent 651699fcd2
commit 88294fe352

View File

@@ -117,6 +117,7 @@ class Section(Item[V]):
if not isinstance(value, Item):
raise TypeError(f'Expected an Item, got {value.__class__.__name__!r} instead')
value._update_view(self.view)
value._parent = self
self._accessory = value