ENH: speed up filament delete

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I0878962d52fe4f7d2976a49b632714ea8d7c42a1
This commit is contained in:
xun.zhang 2025-02-25 21:30:12 +08:00 committed by lane.wei
parent 9c28c320d6
commit ccd3612780
1 changed files with 2 additions and 2 deletions

View File

@ -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();