mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
More tweaking of Button toggle-notification behaviour.
This commit is contained in:
parent
e71fd7cdcb
commit
bbd620c1cf
1 changed files with 2 additions and 1 deletions
|
|
@ -309,7 +309,8 @@ void Button::internalClickCallback (const ModifierKeys& modifiers)
|
|||
{
|
||||
if (clickTogglesState)
|
||||
setToggleState (radioGroupId != 0 || ! lastToggleState, sendNotification);
|
||||
else
|
||||
|
||||
if (radioGroupId != 0 || ! clickTogglesState)
|
||||
sendClickMessage (modifiers);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue