When someCondition is true, the checkbox item that I want disabled is correctly disabled. However later when someCondition is false, and I want to enable all the items again, the item remains disabled. What am I doing wrong?
the problem here seems to be that you don’t re-run the whole if-condition code later when someCondition has changed, therefore the ItemEnabledProvider set on the group is still the same.
I believe it should work if you put the whole if block inside the ItemEnabledProvider:
Kaspar Scherrer:
I believe it should work if you put the whole if block inside the ItemEnabledProvider:
No, that doesn’t seem to work. When setItemEnabledProvider() is called the second time, the lambda isn’t getting called at all until the selection of one of the items changes.