Only update device view when RGBController::UpdateLEDs signal is sent to OpenRGBDevicePage, fix device view not refreshing if multiple LEDs are selected

This commit is contained in:
Adam Honse
2026-03-29 01:02:12 -05:00
parent c48e099984
commit 6e3c14ea2c

View File

@@ -772,6 +772,11 @@ void OpenRGBDevicePage::UpdateLEDUi()
bool selected_all_leds = false;
int selected_led = -1;
/*-----------------------------------------*\
| Update Device View |
\*-----------------------------------------*/
ui->DeviceViewBox->repaint();
/*-----------------------------------------*\
| Handle selection of "Entire Device/Zone/ |
| Segment" index is selected |
@@ -981,10 +986,6 @@ void OpenRGBDevicePage::UpdateLEDUi()
UpdateColorUi();
}
/*-----------------------------------------*\
| Update Device View |
\*-----------------------------------------*/
ui->DeviceViewBox->repaint();
}
break;
@@ -2009,9 +2010,9 @@ void OpenRGBDevicePage::UpdateInterface(unsigned int update_reason)
case RGBCONTROLLER_UPDATE_REASON_UPDATELEDS:
/*-------------------------------------------------*\
| Update LED UI |
| Update Device View |
\*-------------------------------------------------*/
UpdateLEDUi();
ui->DeviceViewBox->repaint();
break;
case RGBCONTROLLER_UPDATE_REASON_UPDATEMODE: