Skip to content

Commit 09ee4b6

Browse files
committed
[frontend] Fix ImGui ID collision in FancyFolderNode
1 parent fc782d1 commit 09ee4b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/frontend/widgets/FancyNodes.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ namespace riistudio::frontend {
1313
bool FancyFolderNode(ImVec4 color, const char* icon,
1414
std::string_view unitPlural, size_t numEntries) {
1515
ImGui::PushStyleColor(ImGuiCol_Text, color);
16-
bool opened = ImGui::CollapsingHeader(icon);
16+
auto collapsingHeaderSalted = std::string(icon) + "##" + std::string(unitPlural);
17+
bool opened = ImGui::CollapsingHeader(collapsingHeaderSalted.c_str());
1718
ImGui::PopStyleColor();
1819
ImGui::SameLine();
1920
ImGui::TextUnformatted(

0 commit comments

Comments
 (0)