Clear the preset name map list during load

This commit is contained in:
Joseph Lenox 2018-11-18 16:44:08 -06:00 committed by Joseph Lenox
parent c8662bad0a
commit 17fd8e26cd

View File

@ -71,6 +71,7 @@ void PresetChooser::load(std::array<Presets, preset_types> presets) {
size_t i {0};
std::vector<std::string> preset_names {};
__chooser_names[get_preset(group)].clear();
// populate the chooser
for (auto* chooser : this->preset_choosers[get_preset(group)]) {
chooser->Clear();