Only show microvia and blind/buried via settings if they are enabled
This commit is contained in:
parent
9a3ea1d53c
commit
2991c0d258
|
@ -828,6 +828,7 @@ void PCB_EDIT_FRAME::ShowDesignRulesEditor( wxCommandEvent& event )
|
|||
{
|
||||
ReCreateLayerBox();
|
||||
ReCreateAuxiliaryToolbar();
|
||||
m_Layers->ReFillRender();
|
||||
OnModify();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -388,6 +388,8 @@ void PCB_LAYER_WIDGET::SetLayersManagerTabsText()
|
|||
void PCB_LAYER_WIDGET::ReFillRender()
|
||||
{
|
||||
BOARD* board = myframe->GetBoard();
|
||||
auto settings = board->GetDesignSettings();
|
||||
|
||||
ClearRenderRows();
|
||||
|
||||
// Add "Items" tab rows to LAYER_WIDGET, after setting color and checkbox state.
|
||||
|
@ -401,6 +403,12 @@ void PCB_LAYER_WIDGET::ReFillRender()
|
|||
if( m_fp_editor_mode && !isAllowedInFpMode( renderRow.id ) )
|
||||
continue;
|
||||
|
||||
if( renderRow.id == LAYER_VIA_MICROVIA && !settings.m_MicroViasAllowed )
|
||||
continue;
|
||||
|
||||
if( renderRow.id == LAYER_VIA_BBLIND && !settings.m_BlindBuriedViaAllowed )
|
||||
continue;
|
||||
|
||||
renderRow.tooltip = wxGetTranslation( s_render_rows[row].tooltip );
|
||||
renderRow.rowName = wxGetTranslation( s_render_rows[row].rowName );
|
||||
|
||||
|
|
Loading…
Reference in New Issue