Tech ENABLE_PREVIEW_LAYOUT - Follow-up of 9a24b08e28
- Port of the into fix the tech
This commit is contained in:
parent
b08c3248b1
commit
c18280016a
@ -980,10 +980,9 @@ void Preview::load_print_as_fff(bool keep_z_range)
|
|||||||
(number_extruders > 1) ? GCodeViewer::EViewType::Tool : GCodeViewer::EViewType::FeatureType;
|
(number_extruders > 1) ? GCodeViewer::EViewType::Tool : GCodeViewer::EViewType::FeatureType;
|
||||||
if (choice != gcode_view_type) {
|
if (choice != gcode_view_type) {
|
||||||
m_canvas->set_gcode_view_preview_type(choice);
|
m_canvas->set_gcode_view_preview_type(choice);
|
||||||
if (wxGetApp().is_gcode_viewer()) {
|
if (wxGetApp().is_gcode_viewer())
|
||||||
m_keep_current_preview_type = true;
|
m_keep_current_preview_type = true;
|
||||||
refresh_print();
|
refresh_print();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
const wxString choice = !gcodes.empty() ?
|
const wxString choice = !gcodes.empty() ?
|
||||||
|
Loading…
Reference in New Issue
Block a user