System Information
Operating system: Mac OS 12.1
Graphics card: Intel Iris 550 1536 MB
Blender Version
Broken: Version 3.0.0 (3.0.0 2021-12-03)
Short description of error
When using Python's hide_viewport variable to hide an object or a collection, the object or collection is indeed hidden but the UI will not unhide them. The "Hide in Viewport" icon (the little eye) is still "open" but greyed out. Clicking it will close the eye. Clicking again will open it but it, the object and collection remain hidden and greyed out.
Hardly a serious bug but I do avoid using hide_viewport now.
Exact steps for others to reproduce the error
See .blend file. Thanks!

