fix: Dangerous function call popup keep appearing

This commit is contained in:
WerWolv 2022-09-15 11:38:22 +02:00
parent 03f357efd1
commit 5c3ee9f499
1 changed files with 1 additions and 0 deletions

View File

@ -420,6 +420,7 @@ namespace hex::plugin::builtin {
if (this->m_dangerousFunctionCalled && !ImGui::IsPopupOpen(View::toWindowName("hex.builtin.view.pattern_editor.dangerous_function.name").c_str())) {
ImGui::OpenPopup(View::toWindowName("hex.builtin.view.pattern_editor.dangerous_function.name").c_str());
this->m_dangerousFunctionCalled = false;
}
if (ImGui::BeginPopupModal(View::toWindowName("hex.builtin.view.pattern_editor.dangerous_function.name").c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {