From a4c5d0bb62efdcfd7320c3f97178924065e4e47d Mon Sep 17 00:00:00 2001 From: gordon-- Date: Thu, 14 Oct 2021 19:05:35 +0200 Subject: [PATCH] Close button in pattern popup (#325) --- source/views/view_pattern_editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/views/view_pattern_editor.cpp b/source/views/view_pattern_editor.cpp index af30cf157..b0751680b 100644 --- a/source/views/view_pattern_editor.cpp +++ b/source/views/view_pattern_editor.cpp @@ -337,7 +337,8 @@ namespace hex { ImGui::EndPopup(); } - if (ImGui::BeginPopupModal("hex.view.pattern.menu.file.load_pattern"_lang, nullptr, ImGuiWindowFlags_AlwaysAutoResize)) { + bool opened = true; + if (ImGui::BeginPopupModal("hex.view.pattern.menu.file.load_pattern"_lang, &opened, ImGuiWindowFlags_AlwaysAutoResize)) { if (ImGui::BeginListBox("##patterns", ImVec2(-FLT_MIN, 0))) {