fix System/Event to abort a lambda before dropping

This commit is contained in:
falsycat 2022-11-24 13:20:29 +09:00
parent 6bca7d7909
commit a08a02d71c

View File

@ -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;
}
}