1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 21:05:26 +03:00

In MixerDialog GVar checkbox for Curves was visible even when GVARS

disabled
This commit is contained in:
bsongis 2014-11-08 11:22:46 +01:00
parent 8a80463476
commit 82c21b8c56

View file

@ -233,7 +233,7 @@ void CurveGroup::update()
curveTypeCB->setCurrentIndex(found);
if (curve.type == CurveReference::CURVE_REF_DIFF || curve.type == CurveReference::CURVE_REF_EXPO) {
curveGVarCB->show();
curveGVarCB->setVisible(GetCurrentFirmware()->getCapability(Gvars));
if (curve.value > 100 || curve.value < -100) {
curveGVarCB->setChecked(true);
if (lastType != CurveReference::CURVE_REF_DIFF && lastType != CurveReference::CURVE_REF_EXPO) {