I have been trying to override combobox class to add this feature but nothing worked. Combobox calls comoboboxChanged function when we select an item from its popup menu but it does not do anything when we try to reselect the same ( already selected and ticked ) item.
I overrode the drawcombobox and drawComboboxItem to change the font of the popup menu items. But I could not find a way to get the mouse down event of the combobox popup menu. It is defined in its class but it is internal. I just want to get a notification or a flag that I can see if an already selected item has been selected again. In that case I will reset the preset parameters but I couldn’t find anything so far.
How you deal with this in your plugins ? After changing the parameters, you may not want to save it or you may want to load the default settings of the preset. Simply by choosing the same preset should reload them. But it does not because it is not triggering the comboboxchanged Could you please help me to fix this issue ?