mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
BailOutChecker: Add checks after callbacks in Slider and ComboBox
Co-authored-by: Roland Rabien <figbug@gmail.com>
This commit is contained in:
parent
1975bb7479
commit
b324a50e82
2 changed files with 6 additions and 0 deletions
|
|
@ -630,6 +630,9 @@ void ComboBox::handleAsyncUpdate()
|
|||
if (onChange != nullptr)
|
||||
onChange();
|
||||
|
||||
if (checker.shouldBailOut())
|
||||
return;
|
||||
|
||||
if (auto* handler = getAccessibilityHandler())
|
||||
handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -363,6 +363,9 @@ public:
|
|||
if (owner.onValueChange != nullptr)
|
||||
owner.onValueChange();
|
||||
|
||||
if (checker.shouldBailOut())
|
||||
return;
|
||||
|
||||
if (auto* handler = owner.getAccessibilityHandler())
|
||||
handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue