Fixed #6832 (again - broken in 69650f7)

This commit is contained in:
Lukas Matena 2024-09-10 22:31:02 +02:00
parent 171508fc40
commit 7b2ee2ae0c

View File

@ -1048,8 +1048,7 @@ void Sidebar::update_sliced_info_sizer()
m_sliced_info->SetTextAndShow(siEstimatedTime, info_text, new_label); 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, ps.total_toolchanges > 0 ? wxString::Format("%.d", ps.total_toolchanges) : "N/A");
m_sliced_info->SetTextAndShow(siWTNumberOfToolchanges, is_wipe_tower ? wxString::Format("%.d", ps.total_toolchanges) : "N/A");
// Hide non-FFF sliced info parameters // Hide non-FFF sliced info parameters
m_sliced_info->SetTextAndShow(siMaterial_unit, "N/A"); m_sliced_info->SetTextAndShow(siMaterial_unit, "N/A");