[kicad] Hiding EDA_ITEMs

2023-01-18 Thread James Jackson
Hi all, I'm making some decent progress with https://gitlab.com/kicad/code/kicad/-/issues/10926 (WIP here: https://gitlab.com/kicad/code/kicad/-/merge_requests/1460 ), but have hit an issue I can't figure out. I need to set EDA_ITEM visibility in SCH_EDIT_FRAME::DisplayCurrentSheet(), so I can hi

Re: [kicad] Hiding EDA_ITEMs

2023-01-18 Thread Seth Hillbrand
Hi James- After you set a flag on a view item, you will need to update it and then force a refresh on that item. This can be done using `UpdateAllItemsConditionally` and then calling a `ForceRefresh`. Since the ERC items live on an overlay, I don't think that you need to mark the layer dirty. B