From dd3b5512eed399bbf502ed334646b152cda601c4 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 14 Dec 2020 17:46:31 +0100 Subject: [PATCH] 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. --- pcbnew/dialogs/panel_setup_layers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/panel_setup_layers.cpp b/pcbnew/dialogs/panel_setup_layers.cpp index 96fdd59a5e..66d8034666 100644 --- a/pcbnew/dialogs/panel_setup_layers.cpp +++ b/pcbnew/dialogs/panel_setup_layers.cpp @@ -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() ); }