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:
parent
88ee2e269f
commit
41e8606fe6
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue