1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

Prevented Button::setToggleState sending unwanted state change messages.

This commit is contained in:
jules 2013-09-13 14:29:24 +01:00
parent c54ca1037d
commit a62d0b5d44

View file

@ -154,7 +154,8 @@ void Button::setToggleState (const bool shouldBeOn, const NotificationType notif
return;
}
sendStateMessage();
if (notification != dontSendNotification)
sendStateMessage();
}
}