From 7b2ee2ae0c63649881f0b8595bf4277f97f47372 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 10 Sep 2024 22:31:02 +0200 Subject: [PATCH] Fixed #6832 (again - broken in 69650f7) --- src/slic3r/GUI/Sidebar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Sidebar.cpp b/src/slic3r/GUI/Sidebar.cpp index 5b05b1ef84..635db4afec 100644 --- a/src/slic3r/GUI/Sidebar.cpp +++ b/src/slic3r/GUI/Sidebar.cpp @@ -1048,8 +1048,7 @@ void Sidebar::update_sliced_info_sizer() m_sliced_info->SetTextAndShow(siEstimatedTime, info_text, new_label); } - // if there is a wipe tower, insert number of toolchanges info into the array: - m_sliced_info->SetTextAndShow(siWTNumberOfToolchanges, is_wipe_tower ? wxString::Format("%.d", ps.total_toolchanges) : "N/A"); + m_sliced_info->SetTextAndShow(siWTNumberOfToolchanges, ps.total_toolchanges > 0 ? wxString::Format("%.d", ps.total_toolchanges) : "N/A"); // Hide non-FFF sliced info parameters m_sliced_info->SetTextAndShow(siMaterial_unit, "N/A");