Fix LED view hiding if a device supports per-zone modes and a zone is selected that is following device mode while the device mode is per-LED

This commit is contained in:
Adam Honse committed 2026-09-19 14:23:37 -05:00
1 parent cd44e41d46
commit d5e0c94fdc
1 file changed
+16 -5
+16 -5
View File
@@ -1629,11 +1629,6 @@ void OpenRGBDevicePage::UpdateModeUi()
ui->PerLEDCheck->setEnabled(enable_controls);
ui->PerLEDCheck->setChecked(per_led);
ui->PerLEDCheck->blockSignals(false);
if(DeviceViewShowing)
{
ui->DeviceViewBoxFrame->show();
}
}
else
{
@@ -1647,6 +1642,22 @@ void OpenRGBDevicePage::UpdateModeUi()
ui->DeviceViewBoxFrame->hide();
}
/*-----------------------------------------------------*\
| Show the device view if the selected mode is a per- |
| LED mode or if the selected zone mode is following |
| entire device and the device mode is per-LED. |
\*-----------------------------------------------------*/
if((per_led)
|| ((selected_zone_mode)
&& (selected_mode == -1)
&& (device->GetModeColorMode(device->GetActiveMode()) == MODE_COLORS_PER_LED)))
{
if(DeviceViewShowing)
{
ui->DeviceViewBoxFrame->show();
}
}
if(supports_mode_specific)
{
ui->ModeSpecificCheck->blockSignals(true);