Code cleaning - removed unused state from DoubleSlider

This commit is contained in:
YuSanka 2019-11-28 08:38:28 +01:00
parent 322c0230c3
commit c87feb9870
3 changed files with 16 additions and 27 deletions

View file

@ -697,11 +697,7 @@ void Preview::update_double_slider(const std::vector<double>& layers_z, bool kee
bool color_print_enable = (wxGetApp().plater()->printer_technology() == ptFFF);
m_slider->EnableTickManipulation(color_print_enable);
if (color_print_enable && wxGetApp().extruders_edited_cnt() > 1) {
m_slider->SetExtruderID(0);
}
else
m_slider->SetExtruderID(-1);
m_slider->SetManipulationState(wxGetApp().extruders_edited_cnt());
}
void Preview::reset_double_slider()