DrawableButton image update bug when disabling notifications


#1

Hi,

I think that I found a little button repainting bug:

I am calling setToggleState() on a DrawableButton with flag "dontSendNotification". As can be seen in the implementation of Button::setToggleState(), dontSendNotification causes the function sendStateMessage() not to be called. The problem is that this function is responsible for calling buttonStateChanged() which in turn updates the image to be used in the DrawableButton. So, disabling notifications also disables image updating in DrawableButton. I guess that this can be fixed by calling buttonStateChanged() -- but not ButtonListener::buttonStateChanged -- when dontSendNotification is set.

Best regards,

 

Francis.


#2

Is this the latest version?


#3

Yes,

We just merged with the last version and this was one of our regressions...

Francis.


#4

Ok, thanks - try again now.


#5

Perfect!

Thank you,

Francis.