If !isBrightnessAvailable
, then the screenBrightnessControl.displays
model should be empty and screenBrightnessRepeater
should not contain any of these items that you're trying to hide with this visible
property.
In other words, I think no change should be necessary in PopupDialog.qml
, any change should come directly from the backend.