Fix channel override icon state not being updated
Reported by @mervdale
This commit is contained in:
committed by
Peter Feerick
parent
8bb04e2a38
commit
3041185ec3
@@ -272,8 +272,19 @@ class ComboChannelBar : public ChannelBar
|
|||||||
value = newValue;
|
value = newValue;
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
#if defined(OVERRIDE_CHANNEL_FUNCTION)
|
||||||
|
int newSafetyChValue = safetyCh[channel];
|
||||||
|
if (safetyChValue != newSafetyChValue)
|
||||||
|
{
|
||||||
|
safetyChValue = newSafetyChValue;
|
||||||
|
invalidate();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int value = 0;
|
int value = 0;
|
||||||
|
#if defined(OVERRIDE_CHANNEL_FUNCTION)
|
||||||
|
int safetyChValue = OVERRIDE_CHANNEL_UNDEFINED;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user