Skip to content

Commit 537ecb2

Browse files
fix: add tag to selected entries in bulk not individually (#1028)
1 parent 62f1b7c commit 537ecb2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/tagstudio/qt/widgets/preview/field_containers.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,10 @@ def add_tags_to_selected(self, tags: int | list[int]):
285285
selected=self.driver.selected,
286286
tags=tags,
287287
)
288-
for entry_id in self.driver.selected:
289-
self.lib.add_tags_to_entries(
290-
entry_id,
291-
tag_ids=tags,
292-
)
288+
self.lib.add_tags_to_entries(
289+
self.driver.selected,
290+
tag_ids=tags,
291+
)
293292
self.emit_badge_signals(tags, emit_on_absent=False)
294293

295294
def write_container(self, index: int, field: BaseField, is_mixed: bool = False):

0 commit comments

Comments
 (0)