Custom Property In Property Change Event Not Firing

I have a custom property named daywork that is a dataset. In the property change event I narrow down the event based on the property name, but it doesn’t fire. Any ideas?

if event.propertyName == 'daywork':
  do something

EDIT: Removing the property name if statement causes the script to fire twice. I then tried using print event.propertyName to see what properties were changing, and it shows visible and text. (Visible property change is from my script)

It turns out, that I have to have the designer in run mode while I make the change for it to fire. Should of known that :sweat_smile: