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();
|
ReCreateLayerBox();
|
||||||
ReCreateAuxiliaryToolbar();
|
ReCreateAuxiliaryToolbar();
|
||||||
|
m_Layers->ReFillRender();
|
||||||
OnModify();
|
OnModify();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,6 +388,8 @@ void PCB_LAYER_WIDGET::SetLayersManagerTabsText()
|
||||||
void PCB_LAYER_WIDGET::ReFillRender()
|
void PCB_LAYER_WIDGET::ReFillRender()
|
||||||
{
|
{
|
||||||
BOARD* board = myframe->GetBoard();
|
BOARD* board = myframe->GetBoard();
|
||||||
|
auto settings = board->GetDesignSettings();
|
||||||
|
|
||||||
ClearRenderRows();
|
ClearRenderRows();
|
||||||
|
|
||||||
// Add "Items" tab rows to LAYER_WIDGET, after setting color and checkbox state.
|
// 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 ) )
|
if( m_fp_editor_mode && !isAllowedInFpMode( renderRow.id ) )
|
||||||
continue;
|
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.tooltip = wxGetTranslation( s_render_rows[row].tooltip );
|
||||||
renderRow.rowName = wxGetTranslation( s_render_rows[row].rowName );
|
renderRow.rowName = wxGetTranslation( s_render_rows[row].rowName );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue