ui: Fixed bookmark headers closing when changing its name

This commit is contained in:
WerWolv 2021-10-26 22:09:30 +02:00
parent a6b8597f5a
commit 716d6573ca
1 changed files with 1 additions and 1 deletions

View File

@ -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());