fix(color): button text for some choice values may be incorrect (#6329)

This commit is contained in:
philmoz
2025-05-30 13:05:52 +10:00
committed by GitHub
parent 1611c1ff52
commit 2583b603e7
+1
View File
@@ -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();
}