Don't double-add presets to preset picker menu.

This commit is contained in:
Jeff Young 2020-08-19 16:39:18 +01:00
parent dd9f7c8c25
commit b9c50c893c
1 changed files with 1 additions and 0 deletions

View File

@ -493,6 +493,7 @@ void APPEARANCE_CONTROLS::SetUserLayerPresets( std::vector<LAYER_PRESET>& aPrese
void APPEARANCE_CONTROLS::loadDefaultLayerPresets() void APPEARANCE_CONTROLS::loadDefaultLayerPresets()
{ {
m_layerPresets.clear(); m_layerPresets.clear();
m_presetMRU.clear();
// Load the read-only defaults // Load the read-only defaults
for( const LAYER_PRESET& preset : { presetAllLayers, presetAllCopper, presetInnerCopper, for( const LAYER_PRESET& preset : { presetAllLayers, presetAllCopper, presetInnerCopper,