Skip to content

Commit

Permalink
Allow multiple on_success handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
vkutuev authored and iakov committed Oct 17, 2022
1 parent beaab34 commit 7cacb17
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,9 @@ void ConstraintsChecker::programFinished(qReal::interpretation::StopReason reaso
void ConstraintsChecker::onSuccess()
{
for (const auto &event : mEvents) {
if (event->id() == "on_success") {
if (event->id().startsWith("on_success")) {
event->setUp();
event->check();
break;
}
}
emit success();
Expand Down

0 comments on commit 7cacb17

Please sign in to comment.