1
0
mirror of synced 2025-01-19 01:24:15 +01:00

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

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)) {