mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-31 03:07:49 -05:00
Block signals fort RGB boxes in page constructor to avoid update slots to be called. Fix #1925
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user