diff --git a/modules/juce_gui_basics/buttons/juce_Button.cpp b/modules/juce_gui_basics/buttons/juce_Button.cpp index 4ce565cf9f..4cfcb497be 100644 --- a/modules/juce_gui_basics/buttons/juce_Button.cpp +++ b/modules/juce_gui_basics/buttons/juce_Button.cpp @@ -154,7 +154,8 @@ void Button::setToggleState (const bool shouldBeOn, const NotificationType notif return; } - sendStateMessage(); + if (notification != dontSendNotification) + sendStateMessage(); } }