FIX: only sort system filaments
Change-Id: I3a111d3b001b9764432ee5fc18af78e459b9105d Github: 5318
This commit is contained in:
parent
9c81c2cf5e
commit
cb1138f66f
|
@ -1155,6 +1155,7 @@ void PlaterPresetComboBox::update()
|
||||||
if (m_type == Preset::TYPE_FILAMENT) {
|
if (m_type == Preset::TYPE_FILAMENT) {
|
||||||
std::vector<std::map<wxString, wxBitmap *>::value_type const*> list(presets.size(), nullptr);
|
std::vector<std::map<wxString, wxBitmap *>::value_type const*> list(presets.size(), nullptr);
|
||||||
std::transform(presets.begin(), presets.end(), list.begin(), [](auto & pair) { return &pair; });
|
std::transform(presets.begin(), presets.end(), list.begin(), [](auto & pair) { return &pair; });
|
||||||
|
if (group == "System presets")
|
||||||
std::sort(list.begin(), list.end(), [&filament_orders, &preset_filament_vendors, &first_vendors, &preset_filament_types, &first_types](auto *l, auto *r) {
|
std::sort(list.begin(), list.end(), [&filament_orders, &preset_filament_vendors, &first_vendors, &preset_filament_types, &first_types](auto *l, auto *r) {
|
||||||
{ // Compare order
|
{ // Compare order
|
||||||
auto iter1 = std::find(filament_orders.begin(), filament_orders.end(), l->first);
|
auto iter1 = std::find(filament_orders.begin(), filament_orders.end(), l->first);
|
||||||
|
|
Loading…
Reference in New Issue