Fixes #3518: GVar combobox not being refreshed when GV checkbox (re-)selected (ported from master)

This commit is contained in:
BenZoFly
2016-05-25 22:14:10 +02:00
committed by Damjan Adamic
parent 5f65217124
commit 0eda971365
+2
View File
@@ -277,6 +277,8 @@ void CurveGroup::gvarCBChanged(int state)
if (!lock) {
if (state) {
curve.value = 10000+1; // TODO constant in EEpromInterface ...
lastType = -1; // quickfix for issue #3518: force refresh of curveValueCB at next update() to set current index to GV1
}
else {
curve.value = 0; // TODO could be better