ENH: speed up filament delete

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I0878962d52fe4f7d2976a49b632714ea8d7c42a1
(cherry picked from commit ccd3612780d8cd913aa7fbdd56c6adccfc1a0093)
This commit is contained in:
xun.zhang 2025-02-25 21:30:12 +08:00 committed by Noisyfox
parent 5c406ef00a
commit 81a8ae1e45

View file

@ -2593,8 +2593,8 @@ void Sidebar::on_filaments_delete(size_t filament_id)
}
}
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();