We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0734199 commit a6aeb90Copy full SHA for a6aeb90
src/GUI.cpp
@@ -123,11 +123,12 @@ void GUI::Run() {
123
124
if (ImGui::BeginTabBar("##LayerSetTabs", ImGuiTabBarFlags_None)) {
125
for (auto& layerSet: layerSets) {
126
+ const auto name = layerSet.mStore->GetDisplayName();
127
const auto label = layerSet.HasErrors()
- ? fmt::format(
128
- "{} {}", Config::GLYPH_ERROR, layerSet.mStore->GetDisplayName())
129
- : layerSet.mStore->GetDisplayName();
130
- if (ImGui::BeginTabItem(label.c_str())) {
+ ? fmt::format("{} {}", Config::GLYPH_ERROR, name)
+ : name;
+ const auto labelWithID = fmt::format("{}###layerSet-{}", label, name);
131
+ if (ImGui::BeginTabItem(labelWithID.c_str())) {
132
layerSet.Draw();
133
ImGui::EndTabItem();
134
}
0 commit comments