Give more priority to user defined 'Description' field.
Only using the one from libs if the user didn't define it.
This commit is contained in:
parent
3555059f8f
commit
7298a5662f
|
|
@ -260,7 +260,8 @@ class ComponentGroup(object):
|
||||||
self.fields[ColumnList.COL_FP_L] = comp.footprint
|
self.fields[ColumnList.COL_FP_L] = comp.footprint
|
||||||
self.fields[ColumnList.COL_FP_LIB_L] = comp.footprint_lib
|
self.fields[ColumnList.COL_FP_LIB_L] = comp.footprint_lib
|
||||||
self.fields[ColumnList.COL_SHEETPATH_L] = comp.sheet_path_h
|
self.fields[ColumnList.COL_SHEETPATH_L] = comp.sheet_path_h
|
||||||
self.fields[ColumnList.COL_DESCRIPTION_L] = comp.desc
|
if not self.fields[ColumnList.COL_DESCRIPTION_L]:
|
||||||
|
self.fields[ColumnList.COL_DESCRIPTION_L] = comp.desc
|
||||||
|
|
||||||
def get_row(self, columns):
|
def get_row(self, columns):
|
||||||
""" Return a dict of the KiCad data based on the supplied columns """
|
""" Return a dict of the KiCad data based on the supplied columns """
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ class ColumnList:
|
||||||
COL_VALUE_L: 1,
|
COL_VALUE_L: 1,
|
||||||
COL_PART_L: 1,
|
COL_PART_L: 1,
|
||||||
COL_PART_LIB_L: 1,
|
COL_PART_LIB_L: 1,
|
||||||
COL_DESCRIPTION_L: 1,
|
#COL_DESCRIPTION_L: 1,
|
||||||
COL_DATASHEET_L: 1,
|
COL_DATASHEET_L: 1,
|
||||||
COL_SHEETPATH_L: 1,
|
COL_SHEETPATH_L: 1,
|
||||||
COL_FP_L: 1,
|
COL_FP_L: 1,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue