If end channel is out of range, pull it into line

This commit is contained in:
Peter Feerick
2021-08-17 22:19:30 +10:00
parent 41093fa791
commit 8ae13bb565
+1
View File
@@ -567,6 +567,7 @@ class ModuleWindow : public FormGroup {
channelStart->setMax(MAX_OUTPUT_CHANNELS - sentModuleChannels(moduleIdx) + 1);
});
channelEnd->enable(minModuleChannels(moduleIdx) < maxModuleChannels(moduleIdx));
if (channelEnd->getValue() > channelEnd->getMax()) channelEnd->setValue(channelEnd->getMax());
}
void update()