PANEL_SETUP_LAYERS:do not disable the button "Add User Defined Layer".

For boards having 2 or 4 layers this button was disabled, that make no sense.
This commit is contained in:
jean-pierre charras 2020-12-14 17:46:31 +01:00
parent 4cb28823d6
commit dd3b5512ee
1 changed files with 1 additions and 1 deletions

View File

@ -922,7 +922,7 @@ void PANEL_SETUP_LAYERS::onUpdateAddUserDefinedLayer( wxUpdateUIEvent& event )
{
wxArrayString availableUserDefinedLayers = getAvailableUserDefinedLayers();
event.Enable( m_PresetsChoice->GetSelection() == 0 && !availableUserDefinedLayers.IsEmpty() );
event.Enable( !availableUserDefinedLayers.IsEmpty() );
}