Improvements for extruder selector (added possibility to create combobox with thin icons)

Call of an update extruder selector after a change of extruder or filament color
This commit is contained in:
YuSanka 2019-10-24 10:38:36 +02:00
parent 2a5cf689a4
commit 398d20c79b
5 changed files with 26 additions and 15 deletions

View file

@ -130,7 +130,7 @@ void ExtruderSequenceDialog::apply_extruder_sequence()
for (size_t extruder=0; extruder < m_sequence.extruders.size(); ++extruder)
{
wxBitmapComboBox* extruder_selector = nullptr;
apply_extruder_selector(&extruder_selector, this);
apply_extruder_selector(&extruder_selector, this, "", wxDefaultPosition, wxSize(12*wxGetApp().em_unit(), -1));
extruder_selector->SetSelection(m_sequence.extruders[extruder]);
extruder_selector->Bind(wxEVT_COMBOBOX, [this, extruder_selector, extruder](wxCommandEvent& evt)