[]
Updates the enabled state of all categories in the toolbox.
public void EnsureCategories()
This method iterates through all categories in the toolbox and updates their enabled state based on the current conditions. It ensures that each category is enabled if it contains any enabled tools.