Only show all layers when the stackup changes.
Fixes: lp:1783231 * https://bugs.launchpad.net/kicad/+bug/1783231
This commit is contained in:
parent
7fa3491616
commit
994a9c5ff8
|
@ -559,16 +559,18 @@ bool PANEL_SETUP_LAYERS::TransferDataFromWindow()
|
|||
}
|
||||
}
|
||||
|
||||
wxString name;
|
||||
|
||||
m_enabledLayers = getUILayerMask();
|
||||
m_pcb->SetEnabledLayers( m_enabledLayers );
|
||||
|
||||
/* Ensure enabled layers are also visible
|
||||
* This is mainly to avoid mistakes if some enabled
|
||||
* layers are not visible when exiting this dialog
|
||||
*/
|
||||
m_pcb->SetVisibleLayers( m_enabledLayers );
|
||||
if( m_enabledLayers != m_pcb->GetEnabledLayers() )
|
||||
{
|
||||
m_pcb->SetEnabledLayers( m_enabledLayers );
|
||||
|
||||
/* Ensure enabled layers are also visible
|
||||
* This is mainly to avoid mistakes if some enabled
|
||||
* layers are not visible when exiting this dialog
|
||||
*/
|
||||
m_pcb->SetVisibleLayers( m_enabledLayers );
|
||||
}
|
||||
|
||||
for( LSEQ seq = LSET::AllCuMask().Seq(); seq; ++seq )
|
||||
{
|
||||
|
@ -576,8 +578,7 @@ bool PANEL_SETUP_LAYERS::TransferDataFromWindow()
|
|||
|
||||
if( m_enabledLayers[layer] )
|
||||
{
|
||||
name = getLayerName( layer );
|
||||
m_pcb->SetLayerName( layer, name );
|
||||
m_pcb->SetLayerName( layer, getLayerName( layer ) );
|
||||
LAYER_T t = (LAYER_T) getLayerTypeIndex( layer );
|
||||
m_pcb->SetLayerType( layer, t );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue