LED view selection should have no effect if not in per-LED mode

This commit is contained in:
Geoffrey Mon 2023-06-04 21:14:07 +00:00 committed by Adam Honse
parent 4b7422e85c
commit 8d5d109eb8

View file

@ -1358,6 +1358,8 @@ void Ui::OpenRGBDevicePage::on_ValSpinBox_valueChanged(int val)
void Ui::OpenRGBDevicePage::on_DeviceViewBox_selectionChanged(QVector<int> indices)
{
if(device->modes[device->active_mode].color_mode == MODE_COLORS_PER_LED)
{
ui->ZoneBox->blockSignals(true);
ui->LEDBox->blockSignals(true);
ui->ZoneBox->setCurrentIndex(0);
@ -1396,6 +1398,7 @@ void Ui::OpenRGBDevicePage::on_DeviceViewBox_selectionChanged(QVector<int> indic
ui->LEDBox->setCurrentIndex(0);
}
ui->LEDBox->blockSignals(false);
}
}
void Ui::OpenRGBDevicePage::on_SetAllButton_clicked()