When filtering default values out, it helps to not use the original source and clobber the compatibilty list.

This commit is contained in:
Joseph Lenox 2018-11-18 17:18:05 -06:00 committed by Joseph Lenox
parent 84ef996275
commit bbbcd36113

View File

@ -63,7 +63,7 @@ void PresetChooser::load(std::array<Presets, preset_types> presets) {
// show default names if no other presets visible.
if (current_list.size() > 1) {
current_list = grep(presets.at(get_preset(group)), [] (const Preset& x) -> bool { return !x.default_preset; });
current_list = grep(current_list, [] (const Preset& x) -> bool { return !x.default_preset; });
}
// # Read the current defaults from the settings file