updateElements

Updates the menuElements.

This is used to initially populate the elements and to update the list based on the visibility condition of the settings.

See also