mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-04 02:44:02 +08:00
Fixed update of gcode preview view type when changing printer
This commit is contained in:
parent
485de8e936
commit
0eca8f14cc
@ -385,9 +385,6 @@ void Preview::set_number_extruders(unsigned int number_extruders)
|
||||
if (m_number_extruders != number_extruders)
|
||||
{
|
||||
m_number_extruders = number_extruders;
|
||||
int type = 0; // color by a feature type
|
||||
if (number_extruders > 1)
|
||||
{
|
||||
int tool_idx = m_choice_view_type->FindString(_(L("Tool")));
|
||||
int type = (number_extruders > 1) ? tool_idx /* color by a tool number */ : 0; // color by a feature type
|
||||
m_choice_view_type->SetSelection(type);
|
||||
@ -397,7 +394,6 @@ void Preview::set_number_extruders(unsigned int number_extruders)
|
||||
m_preferred_color_mode = (type == tool_idx) ? "tool_or_feature" : "feature";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Preview::reset_gcode_preview_data()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user