Fix saving of existing appearance presets

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10166
This commit is contained in:
Jon Evans 2022-01-02 11:59:19 -05:00
parent addc5574b4
commit c52421869a
1 changed files with 3 additions and 0 deletions

View File

@ -2443,6 +2443,9 @@ void APPEARANCE_CONTROLS::onLayerPresetChanged( wxCommandEvent& aEvent )
}
else
{
preset->layers = getVisibleLayers();
preset->renderLayers = getVisibleObjects();
index = m_cbLayerPresets->FindString( name );
m_presetMRU.Remove( name );
}