Implement show_colorname for cables
This commit is contained in:
parent
8c69a0030e
commit
5e4271df1c
@ -271,6 +271,7 @@ class Cable:
|
||||
show_name: Optional[bool] = None
|
||||
show_wirecount: bool = True
|
||||
show_wirenumbers: Optional[bool] = None
|
||||
show_colorname: bool = True
|
||||
ignore_in_bom: bool = False
|
||||
additional_components: List[AdditionalComponent] = field(default_factory=list)
|
||||
|
||||
|
||||
@ -352,7 +352,7 @@ class Harness:
|
||||
colorstr = wv_colors.translate_color(
|
||||
connection_color, self.options.color_mode
|
||||
)
|
||||
if colorstr:
|
||||
if colorstr and cable.show_colorname:
|
||||
wireinfo.append(colorstr)
|
||||
if cable.wirelabels:
|
||||
wireinfo.append(wirelabel if wirelabel is not None else "")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user