Some minor refactoring / polishing.

This commit is contained in:
Vojtech Bubnik 2020-11-21 13:16:03 +01:00
parent 288dbfd0d8
commit 25ca1fcf77
4 changed files with 10 additions and 9 deletions

View file

@ -689,7 +689,7 @@ void Preview::update_layers_slider(const std::vector<double>& layers_z, bool kee
if (sla_print_technology)
m_layers_slider->SetLayersTimes(plater->sla_print().print_statistics().layers_times);
else
m_layers_slider->SetLayersTimes(m_gcode_result->time_statistics.modes[0].layers_times);
m_layers_slider->SetLayersTimes(m_gcode_result->time_statistics.modes.front().layers_times);
m_layers_slider_sizer->Show((size_t)0);
Layout();