ENH: speed up filament delete
jira:NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I0878962d52fe4f7d2976a49b632714ea8d7c42a1
This commit is contained in:
parent
9c28c320d6
commit
ccd3612780
|
@ -2712,8 +2712,8 @@ void Sidebar::on_filaments_delete(size_t filament_id)
|
|||
sizer->Hide(p->m_flushing_volume_btn);
|
||||
}
|
||||
|
||||
for (PlaterPresetComboBox *filament_combo : p->combos_filament) {
|
||||
filament_combo->update();
|
||||
for (size_t idx = filament_id ; idx < p->combos_filament.size(); ++idx) {
|
||||
p->combos_filament[idx]->update();
|
||||
}
|
||||
|
||||
Layout();
|
||||
|
|
Loading…
Reference in New Issue