1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Stopped buttons with auto-toggle sending duplicated events.

This commit is contained in:
jules 2013-10-14 14:09:58 +01:00
parent 3f07f45702
commit 9d505609b7

View file

@ -309,8 +309,8 @@ void Button::internalClickCallback (const ModifierKeys& modifiers)
{
if (clickTogglesState)
setToggleState (radioGroupId != 0 || ! lastToggleState, sendNotification);
sendClickMessage (modifiers);
else
sendClickMessage (modifiers);
}
void Button::flashButtonState()