Show connector pins even when all are unconnected
Bug: Hiding connector pins when none are connected is not reasonable. When combined with loops or neither pinlabels nor pincolors, then exceptions are raised as well. Fix: Forcing pins at the left side in such cases solves #217.
This commit is contained in:
parent
c0a885a800
commit
7546991b04
@ -111,6 +111,10 @@ class Harness:
|
||||
|
||||
for connector in self.connectors.values():
|
||||
|
||||
# If no wires connected (except maybe loop wires)?
|
||||
if not (connector.ports_left or connector.ports_right):
|
||||
connector.ports_left = True # Use left side pins.
|
||||
|
||||
html = []
|
||||
|
||||
rows = [[remove_links(connector.name) if connector.show_name else None],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user