We disable the button for a layers depending on the state of the parent group. E.g. if the parent group is hidden the layer button to toggle the visibility was disabled to indicate that toggling it won't actually change the visibility of the layer (since the whole group is hidden). This wasn't the case for layer groups though and this change fixes that.