Invalidate the secondary CC knob on value changed

This commit is contained in:
Jean Pierre Cimalando 2021-03-01 06:59:29 +01:00
parent 4edbf1f6a5
commit bb593277f6

View file

@ -1515,8 +1515,10 @@ void Editor::Impl::updateCCValue(unsigned cc, float value)
if (SControlsPanel* panel = controlsPanel_)
panel->setControlValue(cc, value);
if (CControl* other = getSecondaryCCControl(cc))
if (CControl* other = getSecondaryCCControl(cc)) {
other->setValue(value);
other->invalid();
}
}
void Editor::Impl::updateCCDefaultValue(unsigned cc, float value)