fix(cpn): Do not display setup center beep option for multipos (#3744)

This commit is contained in:
Neil Horne
2023-07-05 20:51:20 +10:00
committed by GitHub
parent 8f01308ee1
commit b8e690575d
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1541,7 +1541,7 @@ SetupPanel::SetupPanel(QWidget * parent, ModelData & model, GeneralSettings & ge
connect(checkbox, SIGNAL(toggled(bool)), this, SLOT(onBeepCenterToggled(bool)));
centerBeepCheckboxes << checkbox;
if (IS_HORUS_OR_TARANIS(board)) {
if (src.isPot(&genAryIdx) && !generalSettings.isPotAvailable(genAryIdx)) {
if (src.isPot(&genAryIdx) && (!generalSettings.isPotAvailable(genAryIdx) || generalSettings.isMultiPosPot(genAryIdx))) {
checkbox->hide();
}
else if (src.isSlider(&genAryIdx) && !generalSettings.isSliderAvailable(genAryIdx)) {