We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FancyFolderNode
1 parent fc782d1 commit 09ee4b6Copy full SHA for 09ee4b6
source/frontend/widgets/FancyNodes.hpp
@@ -13,7 +13,8 @@ namespace riistudio::frontend {
13
bool FancyFolderNode(ImVec4 color, const char* icon,
14
std::string_view unitPlural, size_t numEntries) {
15
ImGui::PushStyleColor(ImGuiCol_Text, color);
16
- bool opened = ImGui::CollapsingHeader(icon);
+ auto collapsingHeaderSalted = std::string(icon) + "##" + std::string(unitPlural);
17
+ bool opened = ImGui::CollapsingHeader(collapsingHeaderSalted.c_str());
18
ImGui::PopStyleColor();
19
ImGui::SameLine();
20
ImGui::TextUnformatted(
0 commit comments