mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user