From 5c3ee9f499a2e3ede2d3446c75d7e4bad70ff4c0 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 15 Sep 2022 11:38:22 +0200 Subject: [PATCH] fix: Dangerous function call popup keep appearing --- plugins/builtin/source/content/views/view_pattern_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index 3cb3781bc..d09ecf5c0 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -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)) {