Switched from a scriptJob to an api message for getting notification of ui notification. The scriptJob appears to be deferred for some time, and in that time it's possible for a new UIElement to have been created with exactly the same top level path. We then end up accidentally deleting this one rather than the original. This doesn't occur with api messages which appear to be emitted immediately rather than in a deferred manner. Also added a method which derived classes can use to perform cleanup when the maya ui is deleted.
Switched from a scriptJob to an api message for getting notification of ui notification. The scriptJob appears to be deferred for some time, and in that
time it's possible for a new UIElement to have been created with exactly the same top level path. We then end up accidentally deleting this one rather than the
original. This doesn't occur with api messages which appear to be emitted immediately rather than in a deferred manner. Also added a method which derived
classes can use to perform cleanup when the maya ui is deleted.


danieldresser/cortex,lento/cortex,appleseedhq/cortex,danieldresser/cortex,goddardl/cortex,appleseedhq/cortex,goddardl/cortex,hradec/cortex,appleseedhq/cortex,hradec/cortex,lento/cortex,davidsminor/cortex,goddardl/cortex,davidsminor/cortex,hradec/cortex,danieldresser/cortex,davidsminor/cortex,lento/cortex,davidsminor/cortex,danieldresser/cortex