You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While GenerateItemText might behave more properly right now, I believe going forward, the best place I can imagine for calling GenerateItemText would be somewhere within the DrawableMenuItem itself when the item label is actually needed for display.
That way would guarantee both the Dropdown's BDL to be called first, and guarantee the label assignment happening while the drawable menu item is loading (rather than after it's loaded, potentially causing a performance hit or wrong one-frame display). All without going through checking load states or scheduling anything.
The text was updated successfully, but these errors were encountered:
Recently, a series of pull requests got opened and merged back and fourth to resolve edge cases all revolving around
GenerateItemText
:Dropdown
callingGenerateItemText
before it's loaded #5516Schedule
changes toDropdown
#5794Dropdown.AddDropdownItem(text, value)
overload #5831Dropdown
callingGenerateItemText()
before it was fully loaded #5836Ready
state #5850While
GenerateItemText
might behave more properly right now, I believe going forward, the best place I can imagine for callingGenerateItemText
would be somewhere within theDrawableMenuItem
itself when the item label is actually needed for display.That way would guarantee both the
Dropdown
's BDL to be called first, and guarantee the label assignment happening while the drawable menu item is loading (rather than after it's loaded, potentially causing a performance hit or wrong one-frame display). All without going through checking load states or scheduling anything.The text was updated successfully, but these errors were encountered: