fix(color): button text for some choice values may be incorrect (#6329)
This commit is contained in:
@@ -42,6 +42,7 @@ class ChoiceBase : public FormField
|
||||
void setTextHandler(std::function<std::string(int)> handler)
|
||||
{
|
||||
textHandler = std::move(handler);
|
||||
currentValue = INT_MAX; // Force update
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user