Skip to content

KCM: Make sure HDR UI elements aren't shown when HDR isn't available

Nate Graham requested to merge ngraham/kscreen:sync-hdr-statuses into master

Right now we're assuming that HDR can only be enabled when available, but that's actually not the case, as HDR can become unavailable later after having previously enabled it. This can cause the KCM to display inappropriate UI elements.

Fix that by also adding an "Is HDR available?" check to the visibility conditions that currently only check whether HDR is currently enabled.

BUG: 482748 FIXED-IN: 6.0.2

Note: I don't have an HDR-compatible system so I was only able to test this by overriding the new bool property to always be true. It would be nice to get a test from someone with compatible hardware.

Merge request reports