Fixed caching of profile selections at the plater.
This commit is contained in:
parent
4f585f1157
commit
9652e8193a
3 changed files with 3 additions and 5 deletions
src/slic3r/GUI
|
@ -327,7 +327,6 @@ void PresetComboBox::set_label_marker(int item, LabelItemType label_item_type)
|
||||||
|
|
||||||
void PresetComboBox::check_selection()
|
void PresetComboBox::check_selection()
|
||||||
{
|
{
|
||||||
if (this->last_selected != GetSelection())
|
|
||||||
this->last_selected = GetSelection();
|
this->last_selected = GetSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -829,10 +828,7 @@ void Sidebar::update_presets(Preset::Type preset_type)
|
||||||
preset_bundle.sla_materials.update_platter_ui(p->combo_sla_material);
|
preset_bundle.sla_materials.update_platter_ui(p->combo_sla_material);
|
||||||
}
|
}
|
||||||
// Update the printer choosers, update the dirty flags.
|
// Update the printer choosers, update the dirty flags.
|
||||||
auto prev_selection = p->combo_printer->GetSelection();
|
|
||||||
preset_bundle.printers.update_platter_ui(p->combo_printer);
|
preset_bundle.printers.update_platter_ui(p->combo_printer);
|
||||||
if (prev_selection != p->combo_printer->GetSelection())
|
|
||||||
p->combo_printer->check_selection();
|
|
||||||
// Update the filament choosers to only contain the compatible presets, update the color preview,
|
// Update the filament choosers to only contain the compatible presets, update the color preview,
|
||||||
// update the dirty flags.
|
// update the dirty flags.
|
||||||
if (print_tech == ptFFF) {
|
if (print_tech == ptFFF) {
|
||||||
|
|
|
@ -988,6 +988,7 @@ void PresetCollection::update_platter_ui(GUI::PresetComboBox *ui)
|
||||||
|
|
||||||
ui->SetSelection(selected_preset_item);
|
ui->SetSelection(selected_preset_item);
|
||||||
ui->SetToolTip(ui->GetString(selected_preset_item));
|
ui->SetToolTip(ui->GetString(selected_preset_item));
|
||||||
|
ui->check_selection();
|
||||||
ui->Thaw();
|
ui->Thaw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1529,6 +1529,7 @@ void PresetBundle::update_platter_filament_ui(unsigned int idx_extruder, GUI::Pr
|
||||||
}
|
}
|
||||||
ui->SetSelection(selected_preset_item);
|
ui->SetSelection(selected_preset_item);
|
||||||
ui->SetToolTip(ui->GetString(selected_preset_item));
|
ui->SetToolTip(ui->GetString(selected_preset_item));
|
||||||
|
ui->check_selection();
|
||||||
ui->Thaw();
|
ui->Thaw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue