diff --git a/lib/external/libwolv b/lib/external/libwolv index 2158aa88d..2ccf828f7 160000 --- a/lib/external/libwolv +++ b/lib/external/libwolv @@ -1 +1 @@ -Subproject commit 2158aa88dddb9f9f7789e2d6c00569cd22e7f40e +Subproject commit 2ccf828f79a30c8524ad79bbaea44f33e2d43227 diff --git a/lib/external/pattern_language b/lib/external/pattern_language index bcdd163f3..0154e71ac 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit bcdd163f36876b785f54eb002d71445ee55396bf +Subproject commit 0154e71aca643c7d526831755b36e86d41ba0ba4 diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index 2a0934d25..40fd15976 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -193,16 +193,12 @@ 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()); - + if (this->m_dangerousFunctionCalled && !ImGui::IsPopupOpen(ImGuiID(0), ImGuiPopupFlags_AnyPopup)) { PopupQuestion::open("hex.builtin.view.pattern_editor.dangerous_function.desc"_lang, [this] { this->m_dangerousFunctionsAllowed = DangerousFunctionPerms::Allow; - ImGui::CloseCurrentPopup(); }, [this] { this->m_dangerousFunctionsAllowed = DangerousFunctionPerms::Deny; - ImGui::CloseCurrentPopup(); } );