We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98576f2 commit 8fade98Copy full SHA for 8fade98
NodeGraphQt/base/port.py
@@ -104,14 +104,13 @@ def set_visible(self, visible=True):
104
Args:
105
visible (bool): true if visible.
106
"""
107
+ self.model.visible = visible
108
label = 'show' if visible else 'hide'
109
undo_stack = self.node().graph.undo_stack()
110
undo_stack.beginMacro('{} port {}'.format(label, self.name()))
111
- connected_ports = self.connected_ports()
112
- if connected_ports:
113
- for port in connected_ports:
114
- undo_stack.push(PortDisconnectedCmd(self, port))
+ for port in self.connected_ports():
+ undo_stack.push(PortDisconnectedCmd(self, port))
115
116
undo_stack.push(PortVisibleCmd(self))
117
undo_stack.endMacro()
0 commit comments