Open AntanasBuk opened 11 months ago
Shouldnt that be handled through a ConditionalBooleanValue
on the isHidden
prop of the toolbar ? (And listening to syncEvents)
I've added events in https://github.com/iTwin/appui/pull/425 that would make isHidden
prop to be recalculated. The problem is the events do not give any information about what changed: what category/model was hidden or shown or overridden in some way, and only api for tracking individual hidden elements (not categories or models) exists in itwin-core (neverDrawn
).
Describe the bug Overriding categories or models displayed in the view with tool buttons from
StandardContentToolsUiItemsProvider
keeps a local state of overridden feature ids and changes to features from outside of AppUI's API would not modify this state hence disrupting functionality and displaying of these buttons.To Reproduce Steps to reproduce the behavior of one of the bugs:
StandardContentToolsUiItemsProvider
buttons do not change.Expected behavior
clearHideIsolateEmphasizeElements
button should appear.Screenshots
Desktop (please complete the applicable information):
Additional context Issue discussed in https://github.com/iTwin/appui/issues/264 comments and https://github.com/iTwin/itwinjs-core/discussions/5772#discussioncomment-6532862.