From 716d6573ca8d7d676f917256e20f581d39ce3c71 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 26 Oct 2021 22:09:30 +0200 Subject: [PATCH] ui: Fixed bookmark headers closing when changing its name --- source/views/view_bookmarks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/views/view_bookmarks.cpp b/source/views/view_bookmarks.cpp index 74d8bdda3..23f21f224 100644 --- a/source/views/view_bookmarks.cpp +++ b/source/views/view_bookmarks.cpp @@ -73,7 +73,7 @@ namespace hex { ImGui::PushStyleColor(ImGuiCol_Header, color); ImGui::PushStyleColor(ImGuiCol_HeaderActive, color); ImGui::PushStyleColor(ImGuiCol_HeaderHovered, u32(hoverColor)); - if (ImGui::CollapsingHeader(std::string(name.data()).c_str())) { + if (ImGui::CollapsingHeader((std::string(name.data()) + "###bookmark").c_str())) { ImGui::TextUnformatted("hex.view.bookmarks.title.info"_lang); ImGui::Separator(); ImGui::TextUnformatted(hex::format("hex.view.bookmarks.address"_lang, region.address, region.address + region.size - 1, region.size).c_str());