Display number of tool changes after slicing #12464 (#12474)

This commit is contained in:
Kegan Holtzhausen
2026-04-24 08:04:09 +02:00
committed by GitHub
parent 9c046c7c24
commit f1cacd89c0

View File

@@ -3875,6 +3875,14 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv
::sprintf(buf, "%d", m_print_statistics.total_filament_changes);
imgui.text(buf);
//display tool change times
ImGui::Dummy({window_padding, window_padding});
ImGui::SameLine();
imgui.text(_u8L("Tool changes") + ":");
ImGui::SameLine();
::sprintf(buf, "%d", m_print_statistics.total_extruder_changes);
imgui.text(buf);
//BBS display cost
ImGui::Dummy({ window_padding, window_padding });
ImGui::SameLine();