mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-19 12:06:37 -04:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user