Armature layer gui does not update when altered via Python script

when i move edit bones to a new armature layer via python script the armature layers gui does not show the expected icon:

Does anybody know how to make the gui respect my changes? I would expect a small white dot to appear in all layers that contain bones.

I am changing layers like this:

obj.data.edit_bones.active.layers[10] = True


Thanks a lot!

• Probably should do it in object mode and use something like this arm.data.bones[0].layers[5] = True – lemon Sep 24 '19 at 15:21