Fix saving of existing appearance presets

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10166

(cherry picked from commit c52421869a)
This commit is contained in:
Jon Evans 2022-01-02 11:59:19 -05:00
parent 88ee2e269f
commit 41e8606fe6
1 changed files with 3 additions and 0 deletions

View File

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