fix(color): slow prec not updating fields when changing precision (#5105)

This commit is contained in:
philmoz
2024-06-02 19:48:11 +10:00
committed by GitHub
parent 43afacf230
commit 77feeb62f7
@@ -109,8 +109,10 @@ void MixEditAdvanced::buildBody(Window* form)
GET_DEFAULT(mix->speedPrec),
[=](int newValue) {
mix->speedPrec = newValue;
slowUp->clearTextFlag(PREC2);
slowUp->setTextFlag(mix->speedPrec ? PREC2 : PREC1);
slowUp->update();
slowDn->clearTextFlag(PREC2);
slowDn->setTextFlag(mix->speedPrec ? PREC2 : PREC1);
slowDn->update();
SET_DIRTY();