Hey Jules -
Minor issue with buttons. If I set the button toggle state Value to refer to the same source as some other Value, and then tweak that value … I can trigger clicks. Shouldn’t this just fall through to buttonStateChanged() and not sendClickMessage()?
Maybe I’m missing something and there is a great reason for this, but I don’t see why you would want to trigger clicks from state changes … just the other way around.
from juce_button.cpp :
[code]
void Button::valueChanged (Value& value)
{
if (value.refersToSameSourceAs (isOn))
setToggleState (isOn.getValue(), true);
}
void Button::setToggleState (const bool shouldBeOn,
const bool sendChangeNotification)
{
…
if (sendChangeNotification)
{
sendClickMessage (ModifierKeys());
if (deletionWatcher == 0)
return;
}
...
}[/code]
