Block signals fort RGB boxes in page constructor to avoid update slots to be called. Fix #1925
This commit is contained in:
parent
08b31e636c
commit
9dd46c270c
1 changed files with 8 additions and 0 deletions
|
|
@ -105,9 +105,17 @@ OpenRGBDevicePage::OpenRGBDevicePage(RGBController *dev, QWidget *parent) :
|
|||
| Update mode user interface elements |
|
||||
\*-----------------------------------------------------*/
|
||||
UpdateModeUi();
|
||||
|
||||
ui->RedSpinBox->blockSignals(true);
|
||||
ui->GreenSpinBox->blockSignals(true);
|
||||
ui->BlueSpinBox->blockSignals(true);
|
||||
ui->RedSpinBox->setValue(ui->ColorWheelBox->color().red());
|
||||
ui->GreenSpinBox->setValue(ui->ColorWheelBox->color().green());
|
||||
ui->BlueSpinBox->setValue(ui->ColorWheelBox->color().blue());
|
||||
ui->RedSpinBox->blockSignals(false);
|
||||
ui->GreenSpinBox->blockSignals(false);
|
||||
ui->BlueSpinBox->blockSignals(false);
|
||||
|
||||
ui->ApplyColorsButton->setDisabled(autoUpdateEnabled());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue