[Simulator] Fix mixer outputs monitor not updating when channel value hasn't changed (fixes #6064). (#6122)
This commit is contained in:
@@ -481,11 +481,14 @@ void OpenTxSimulator::checkOutputsChanged()
|
|||||||
for (i=0; i < chansDim; i++) {
|
for (i=0; i < chansDim; i++) {
|
||||||
if (lastOutputs.chans[i] != channelOutputs[i] || m_resetOutputsData) {
|
if (lastOutputs.chans[i] != channelOutputs[i] || m_resetOutputsData) {
|
||||||
emit channelOutValueChange(i, channelOutputs[i], (g_model.extendedLimits ? limit * LIMIT_EXT_PERCENT / 100 : limit));
|
emit channelOutValueChange(i, channelOutputs[i], (g_model.extendedLimits ? limit * LIMIT_EXT_PERCENT / 100 : limit));
|
||||||
emit channelMixValueChange(i, ex_chans[i], limit * 2);
|
|
||||||
emit outputValueChange(OUTPUT_SRC_CHAN_OUT, i, channelOutputs[i]);
|
emit outputValueChange(OUTPUT_SRC_CHAN_OUT, i, channelOutputs[i]);
|
||||||
emit outputValueChange(OUTPUT_SRC_CHAN_MIX, i, ex_chans[i]);
|
|
||||||
lastOutputs.chans[i] = channelOutputs[i];
|
lastOutputs.chans[i] = channelOutputs[i];
|
||||||
}
|
}
|
||||||
|
if (lastOutputs.ex_chans[i] != ex_chans[i] || m_resetOutputsData) {
|
||||||
|
emit channelMixValueChange(i, ex_chans[i], limit * 2);
|
||||||
|
emit outputValueChange(OUTPUT_SRC_CHAN_MIX, i, ex_chans[i]);
|
||||||
|
lastOutputs.ex_chans[i] = ex_chans[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0; i < MAX_LOGICAL_SWITCHES; i++) {
|
for (i=0; i < MAX_LOGICAL_SWITCHES; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user