FIX:The color scheme selection has been reset.
jira: nojira Change-Id: I8bf7a8db4e40315b68e610008c865c319ba70172
This commit is contained in:
parent
d2096efe52
commit
5ae194be77
|
@ -921,6 +921,15 @@ void GCodeViewer::init(ConfigOptionMode mode, PresetBundle* preset_bundle)
|
||||||
m_layers_slider->init_texture();
|
m_layers_slider->init_texture();
|
||||||
|
|
||||||
m_gl_data_initialized = true;
|
m_gl_data_initialized = true;
|
||||||
|
|
||||||
|
// set to color print by default if use multi extruders
|
||||||
|
if (m_nozzle_nums > 1) {
|
||||||
|
m_view_type_sel = (int)EViewType::Summary;
|
||||||
|
set_view_type(EViewType::Summary);
|
||||||
|
} else {
|
||||||
|
m_view_type_sel = (int)EViewType::FeatureType;
|
||||||
|
set_view_type(EViewType::FeatureType);
|
||||||
|
}
|
||||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": finished");
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": finished");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1119,15 +1128,6 @@ void GCodeViewer::load(const GCodeProcessorResult& gcode_result, const Print& pr
|
||||||
m_time_estimate_mode = PrintEstimatedStatistics::ETimeMode::Normal;
|
m_time_estimate_mode = PrintEstimatedStatistics::ETimeMode::Normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set to color print by default if use multi extruders
|
|
||||||
if (m_nozzle_nums > 1) {
|
|
||||||
m_view_type_sel = (int) EViewType::Summary;
|
|
||||||
set_view_type(EViewType::Summary);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
m_view_type_sel = (int) EViewType::FeatureType;
|
|
||||||
set_view_type(EViewType::FeatureType);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_fold = false;
|
m_fold = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue