fix System/Event to abort a lambda before dropping
This commit is contained in:
parent
6bca7d7909
commit
a08a02d71c
@ -245,7 +245,8 @@ void Event::PostUpdate() noexcept {
|
||||
}
|
||||
|
||||
void Event::UpdateMenu() noexcept {
|
||||
if (ImGui::MenuItem("drop handler lambda")) {
|
||||
if (ImGui::MenuItem("abort and drop lambda", nullptr, false, !!la_)) {
|
||||
la_->Abort();
|
||||
la_ = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user