mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 14:05:55 +08:00
Clear the preset name map list during load
This commit is contained in:
parent
c8662bad0a
commit
17fd8e26cd
@ -71,6 +71,7 @@ void PresetChooser::load(std::array<Presets, preset_types> presets) {
|
|||||||
|
|
||||||
size_t i {0};
|
size_t i {0};
|
||||||
std::vector<std::string> preset_names {};
|
std::vector<std::string> preset_names {};
|
||||||
|
__chooser_names[get_preset(group)].clear();
|
||||||
// populate the chooser
|
// populate the chooser
|
||||||
for (auto* chooser : this->preset_choosers[get_preset(group)]) {
|
for (auto* chooser : this->preset_choosers[get_preset(group)]) {
|
||||||
chooser->Clear();
|
chooser->Clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user