mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: Filament preset is the same with the first one
Jira: STUDIO-4519 Filament preset is the same wit the first one, it should align with the last one. Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com> Change-Id: I304d0ff0fbc1c8948d410ea552e4d42b6a4e8fd9
This commit is contained in:
@@ -1453,10 +1453,12 @@ void Sidebar::on_filaments_change(size_t num_filaments)
|
||||
{
|
||||
PlaterPresetComboBox* choice/*{ nullptr }*/;
|
||||
init_filament_combo(&choice, i);
|
||||
int last_selection = choices.back()->GetSelection();
|
||||
choices.push_back(choice);
|
||||
|
||||
// initialize selection
|
||||
choice->update();
|
||||
choice->SetSelection(last_selection);
|
||||
++i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user