Eeschema: make footprint and datasheet initially invisible, when creating a component

This commit is contained in:
Dick Hollenbeck 2016-05-16 20:59:35 +02:00 committed by jean-pierre charras
parent 74d3cfd688
commit 544554086e
2 changed files with 22 additions and 11 deletions

View File

@ -78,6 +78,17 @@ void LIB_FIELD::Init( int id )
// less dependent on field ids and more dependent on names.
// Plus assumptions are made in the field editors.
m_name = TEMPLATE_FIELDNAME::GetDefaultFieldName( id );
switch( id )
{
case DATASHEET:
case FOOTPRINT:
// by contrast, VALUE and REFERENCE are are always constructed as
// initially visible, and template fieldsnames' initial visibility
// is controlled by the template fieldname configuration record.
SetVisible( false );
break;
}
}