Short description of error
Disabled collections are "visible" when switch back and forth workspace viewlayers.
Exact steps for others to reproduce the error
- Default Blender, disable Collection 1
- Switch to "Viewport" view layer
- Switch back to "RenderLayer" view layer
If we force depsgraph visibility to be re-evaluated (e.g., by changing the selectability of a collection) we get the "Viewport" to properly hide its objects.
I don't know if this is a depsgraph or workspaces bug to be honest.