GCode Viewer - Fixed filament label in legend
This commit is contained in:
parent
ddc9e26f19
commit
ce7b843de7
1 changed files with 3 additions and 1 deletions
|
@ -2675,7 +2675,9 @@ void GCodeViewer::render_legend() const
|
||||||
}
|
}
|
||||||
if (!m_settings_ids.filament.empty()) {
|
if (!m_settings_ids.filament.empty()) {
|
||||||
for (unsigned char i : m_extruder_ids) {
|
for (unsigned char i : m_extruder_ids) {
|
||||||
imgui.text(_u8L("Filament") + " " + std::to_string(i + 1) + ":");
|
std::string txt = _u8L("Filament");
|
||||||
|
txt += (m_extruder_ids.size() == 1) ? ":" : " " + std::to_string(i + 1);
|
||||||
|
imgui.text(txt);
|
||||||
ImGui::SameLine(offset);
|
ImGui::SameLine(offset);
|
||||||
imgui.text(m_settings_ids.filament[i]);
|
imgui.text(m_settings_ids.filament[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue