mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Updated tooltips and context menus for 3 manipulation mode of DoubleSlider
+ Some code refactoring
This commit is contained in:
parent
fb65e3152f
commit
aed277089b
3 changed files with 220 additions and 116 deletions
|
@ -694,9 +694,9 @@ void Preview::update_double_slider(const std::vector<double>& layers_z, bool kee
|
|||
m_slider->EnableTickManipulation(color_print_enable);
|
||||
|
||||
// Detect and set manipulation mode for double slider
|
||||
m_slider->SetManipulationState( wxGetApp().extruders_edited_cnt() == 1 ? DoubleSlider::msSingleExtruder :
|
||||
wxGetApp().plater()->is_one_extruder_printed_model() ? DoubleSlider::msMultiAsSingle :
|
||||
DoubleSlider::msMultiExtruder);
|
||||
m_slider->SetManipulationMode( wxGetApp().extruders_edited_cnt() == 1 ? DoubleSlider::mmSingleExtruder :
|
||||
wxGetApp().plater()->is_one_extruder_printed_model() ? DoubleSlider::mmMultiAsSingle :
|
||||
DoubleSlider::mmMultiExtruder);
|
||||
}
|
||||
|
||||
void Preview::reset_double_slider()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue