Don't gray out non-enabled layers in layers setup panel.
Fixes: lp:1794215 * https://bugs.launchpad.net/kicad/+bug/1794215
This commit is contained in:
parent
12e38bc5fa
commit
dfd028a66a
|
@ -363,8 +363,6 @@ void PANEL_SETUP_LAYERS::setLayerCheckBox( LAYER_NUM aLayer, bool isChecked )
|
||||||
PANEL_SETUP_LAYERS_CTLs ctl = getCTLs( aLayer );
|
PANEL_SETUP_LAYERS_CTLs ctl = getCTLs( aLayer );
|
||||||
|
|
||||||
ctl.checkbox->SetValue( isChecked );
|
ctl.checkbox->SetValue( isChecked );
|
||||||
ctl.name->Enable( isChecked );
|
|
||||||
ctl.choice->Enable( isChecked );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -411,13 +409,6 @@ void PANEL_SETUP_LAYERS::setCopperLayerCheckBoxes( int copperCount )
|
||||||
|
|
||||||
void PANEL_SETUP_LAYERS::OnCheckBox( wxCommandEvent& event )
|
void PANEL_SETUP_LAYERS::OnCheckBox( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
for( LSEQ seq = dlg_layers(); seq; ++seq )
|
|
||||||
{
|
|
||||||
PANEL_SETUP_LAYERS_CTLs ctl = getCTLs( *seq );
|
|
||||||
ctl.name->Enable( ctl.checkbox->GetValue() );
|
|
||||||
ctl.choice->Enable( ctl.checkbox->GetValue() );
|
|
||||||
}
|
|
||||||
|
|
||||||
m_enabledLayers = getUILayerMask();
|
m_enabledLayers = getUILayerMask();
|
||||||
|
|
||||||
showPresets( m_enabledLayers );
|
showPresets( m_enabledLayers );
|
||||||
|
|
Loading…
Reference in New Issue