Fix channel override icon state not being updated

Reported by @mervdale
This commit is contained in:
Peter Feerick
2021-10-27 09:39:03 +10:00
committed by Peter Feerick
parent 8bb04e2a38
commit 3041185ec3
+11
View File
@@ -272,8 +272,19 @@ class ComboChannelBar : public ChannelBar
value = newValue;
invalidate();
}
#if defined(OVERRIDE_CHANNEL_FUNCTION)
int newSafetyChValue = safetyCh[channel];
if (safetyChValue != newSafetyChValue)
{
safetyChValue = newSafetyChValue;
invalidate();
}
#endif
}
protected:
int value = 0;
#if defined(OVERRIDE_CHANNEL_FUNCTION)
int safetyChValue = OVERRIDE_CHANNEL_UNDEFINED;
#endif
};