Operating system: Windows 10
Graphics card: GTX1080Ti
Broken: Latest master
Short description of error
When you enable Xray mode (show whole scene transparent) but set Xray to 1.0 to disable transparency (which is more often annoying than helpful), shading options such as cavity or shadows do work (toggling them has an effect) but they remain grayed out, and their sub-options are not displayed.
Exact steps for others to reproduce the error
1, In a new scene with a default cube enable Xray (show whole scene transparent)
2, In shading options popover, set Xray value to 1.0
3, In shading options popover, enable Cavity
4, Notice cavity gets enabled in the viewport, but the cavity sub-options do not appear
Result: This behavior makes it appear as if there are no cavity sub options even though cavity works under given circumstances
Expected: Working shading features are not grayed out and their sub options do appear.