Skip to content

Commit 6a680ad

Browse files
committed
Increase shown tag limit from 29 to 100 (#227)
1 parent b5ec359 commit 6a680ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tagstudio/src/qt/modals/tag_search.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, library):
3838
self.lib: Library = library
3939
# self.callback = callback
4040
self.first_tag_id = None
41-
self.tag_limit = 30
41+
self.tag_limit = 100
4242
# self.selected_tag: int = 0
4343
self.setMinimumSize(300, 400)
4444
self.root_layout = QVBoxLayout(self)
@@ -107,9 +107,7 @@ def update_tags(self, query: str = ""):
107107
# logging.info(f"I'm deleting { self.scroll_layout.itemAt(0).widget()}")
108108
self.scroll_layout.takeAt(0).widget().deleteLater()
109109

110-
found_tags = self.lib.search_tags(query, include_cluster=True)[
111-
: self.tag_limit - 1
112-
]
110+
found_tags = self.lib.search_tags(query, include_cluster=True)[: self.tag_limit]
113111
self.first_tag_id = found_tags[0] if found_tags else None
114112

115113
for tag_id in found_tags:

0 commit comments

Comments
 (0)