mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-19 19:12:23 -07: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:
parent
5c406ef00a
commit
81a8ae1e45
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue