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:
parent
c54ca1037d
commit
a62d0b5d44
1 changed files with 2 additions and 1 deletions
|
|
@ -154,7 +154,8 @@ void Button::setToggleState (const bool shouldBeOn, const NotificationType notif
|
|||
return;
|
||||
}
|
||||
|
||||
sendStateMessage();
|
||||
if (notification != dontSendNotification)
|
||||
sendStateMessage();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue