fix: Open Popup crash
This commit is contained in:
parent
888976873a
commit
2f6e91cd9e
@ -459,12 +459,14 @@ namespace hex {
|
|||||||
ImGui::EndPopup();
|
ImGui::EndPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto it = this->m_popupsToOpen.begin(); it != this->m_popupsToOpen.end(); it++) {
|
this->m_popupsToOpen.remove_if([](const auto &name) {
|
||||||
if (ImGui::IsPopupOpen(it->c_str()))
|
if (ImGui::IsPopupOpen(name.c_str()))
|
||||||
this->m_popupsToOpen.erase(it);
|
return true;
|
||||||
else
|
else
|
||||||
ImGui::OpenPopup(it->c_str());
|
ImGui::OpenPopup(name.c_str());
|
||||||
}
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::frame() {
|
void Window::frame() {
|
||||||
|
Loading…
Reference in New Issue
Block a user