Increase shown tag limit from 29 to 100 (#227)

This commit is contained in:
Travis Abendshien
2024-06-08 12:40:37 -07:00
parent b5ec3598e1
commit 6a680ad3d1

View File

@@ -38,7 +38,7 @@ class TagSearchPanel(PanelWidget):
self.lib: Library = library
# self.callback = callback
self.first_tag_id = None
self.tag_limit = 30
self.tag_limit = 100
# self.selected_tag: int = 0
self.setMinimumSize(300, 400)
self.root_layout = QVBoxLayout(self)
@@ -107,9 +107,7 @@ class TagSearchPanel(PanelWidget):
# logging.info(f"I'm deleting { self.scroll_layout.itemAt(0).widget()}")
self.scroll_layout.takeAt(0).widget().deleteLater()
found_tags = self.lib.search_tags(query, include_cluster=True)[
: self.tag_limit - 1
]
found_tags = self.lib.search_tags(query, include_cluster=True)[: self.tag_limit]
self.first_tag_id = found_tags[0] if found_tags else None
for tag_id in found_tags: