Skip to content

Commit eb0c413

Browse files
fix logic for amount 1
1 parent 0c31430 commit eb0c413

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

flowpipe_editor/widgets/properties_bin/node_property_widgets.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -543,12 +543,11 @@ def add_node(self, node):
543543
if itm_find:
544544
self._prop_list.removeRow(itm_find[0].row())
545545

546-
rows = self._prop_list.rowCount() - 1
547-
548-
if rows >= (self.limit() - 1):
549-
self._prop_list.removeRow(rows - 1)
550-
551546
self._prop_list.insertRow(0)
547+
rows = self._prop_list.rowCount() - 1
548+
549+
if rows >= (self.limit()):
550+
self._prop_list.removeRow(rows)
552551

553552
prop_widget = self.create_property_editor(node=node)
554553
prop_widget.property_closed.connect(self.__on_prop_close)

0 commit comments

Comments
 (0)