1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Open Popup crash

This commit is contained in:
WerWolv 2021-09-27 15:04:30 +02:00
parent 888976873a
commit 2f6e91cd9e

View File

@ -459,12 +459,14 @@ namespace hex {
ImGui::EndPopup();
}
for (auto it = this->m_popupsToOpen.begin(); it != this->m_popupsToOpen.end(); it++) {
if (ImGui::IsPopupOpen(it->c_str()))
this->m_popupsToOpen.erase(it);
this->m_popupsToOpen.remove_if([](const auto &name) {
if (ImGui::IsPopupOpen(name.c_str()))
return true;
else
ImGui::OpenPopup(it->c_str());
}
ImGui::OpenPopup(name.c_str());
return false;
});
}
void Window::frame() {