Button state images will change at initialisation but not after widget is displayed

I am essentially calling the same event from OnInitialized and it works fine.

It just doesn’t seem to work if called again after the widget is already displayed.