Close button in pattern popup (#325)

This commit is contained in:
gordon-- 2021-10-14 19:05:35 +02:00 committed by GitHub
parent 9b316795fc
commit a4c5d0bb62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -337,7 +337,8 @@ namespace hex {
ImGui::EndPopup(); 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))) { if (ImGui::BeginListBox("##patterns", ImVec2(-FLT_MIN, 0))) {