1
0
Fork 0
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:
reuk 2022-08-31 15:06:10 +01:00
parent 1975bb7479
commit b324a50e82
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
2 changed files with 6 additions and 0 deletions

View file

@ -630,6 +630,9 @@ void ComboBox::handleAsyncUpdate()
if (onChange != nullptr)
onChange();
if (checker.shouldBailOut())
return;
if (auto* handler = getAccessibilityHandler())
handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged);
}

View file

@ -363,6 +363,9 @@ public:
if (owner.onValueChange != nullptr)
owner.onValueChange();
if (checker.shouldBailOut())
return;
if (auto* handler = owner.getAccessibilityHandler())
handler->notifyAccessibilityEvent (AccessibilityEvent::valueChanged);
}