Per-viewport layer visibility question

Hi

Here is an issues I keep on having in Rhino, I thought it was fixed in Rhino 7 but it just keeps on happening, even after multiple reports

The issue is when using HideLayerInDetail (commandline) or `SetPerViewportVisible (RhinoCommon), the child layers are not fully turned off

this is a problem when the detail view is copied, because all the layers that are meant to be hidden is then turned back on (maybe because they are not fully turned off in the original detail view)

Rhino file is attached. Hopefully someone can have a look into it and maybe fix it.

HideLayerInDetail.3dm (55.8 KB)