I have buttons with toggle action to sends CC midi messages that enable/disable effects (in Thu or Tonestack for example). Midi pedal action is then bound to the button to toggle the effect. This works great and the button state provides visual feedback on the state of the effect.
I want to the be able to reset the effect to a known state (eg, reset it to off on a clear operation). But there is no way to to do this and have the toggle button reflect the actual state of the effect. The clear operation can set the effect to off (by sending CC value 0), but the toggle button wont react visually and will then be out of sync with the effect state. Clicking the button twice will always get the toggle button back in sync, but the end result may be on or off.
It would useful to be able to trigger a button's toggle action with either a set on or set off. Ideally the toggle action set to send midi cc would send either 0 or 127 respectively, but at a bare minimum it would just only perform the toggle if necessary to change to the requested state (eg., only trigger the widget if trigger action requested off and prior state was on).