mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-02 07:14:46 -04:00
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:
1 parent
cd44e41d46
commit
d5e0c94fdc
1 file changed
+16
-5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user