When a group is being disabled, all layers, contained in the group, will be disabled. When enabling again, the previous visibility state of every layer will be remembered. When moving layers into a disabled group, they will get disabled. When moving layers out of a disabled group, they will be enabled again.