DoubleSlider issues (1 & 3 from SPE-686)

+ added icon for "Keyboard shortcuts" dialog
This commit is contained in:
YuSanka 2018-12-19 15:58:01 +01:00
parent 17c2f3d813
commit 4c55f1ce9e
3 changed files with 3 additions and 2 deletions

View file

@ -587,7 +587,8 @@ void Preview::create_double_slider()
auto& config = wxGetApp().preset_bundle->project_config;
((config.option<ConfigOptionFloats>("colorprint_heights"))->values) = (m_slider->GetTicksValues());
m_schedule_background_process();
int type = m_choice_view_type->FindString(_(L("Color Print")));
bool color_print = !config.option<ConfigOptionFloats>("colorprint_heights")->values.empty();
int type = m_choice_view_type->FindString(color_print ? _(L("Color Print")) : _(L("Feature type")) );
if (m_choice_view_type->GetSelection() != type) {
m_choice_view_type->SetSelection(type);
if ((0 <= type) && (type < (int)GCodePreviewData::Extrusion::Num_View_Types))