[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-05-19 18:31:00 +00:00
parent d749098dcb
commit 9cb8cced38
2 changed files with 6 additions and 6 deletions

View File

@@ -462,8 +462,8 @@ class ToolBit(Asset, ABC):
# Copy properties from the restored object to the ToolBitShape.
for name, item in self._tool_bit_shape.schema().items():
if name in self.obj.PropertiesList:
value = self.obj.getPropertyByName(name)
self._tool_bit_shape.set_parameter(name, value)
value = self.obj.getPropertyByName(name)
self._tool_bit_shape.set_parameter(name, value)
# Ensure property state is correct after restore.
self._update_tool_properties()

View File

@@ -187,10 +187,10 @@ class ToolBitBrowserWidget(QtGui.QWidget):
offset = self._tool_list_widget.count()
more_items = True
while more_items:
more_items = self._fetch_batch(offset)
offset += self._batch_size
if scrollbar.maximum() != 0:
break
more_items = self._fetch_batch(offset)
offset += self._batch_size
if scrollbar.maximum() != 0:
break
# Apply filter to ensure UI consistency
self._tool_list_widget.apply_filter(self._current_search)