mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Improve performance of 'remove all tags' in custom_column_widgets.py
This commit is contained in:
parent
13a9d61969
commit
9a9b94ef0b
@ -550,9 +550,7 @@ class BulkText(BulkBase):
|
||||
remove_all, adding, rtext = self.gui_val
|
||||
remove = set()
|
||||
if remove_all:
|
||||
for book_id in book_ids:
|
||||
remove |= set(self.db.get_custom(book_id, num=self.col_id,
|
||||
index_is_id=True))
|
||||
remove = set(self.db.all_custom(num=self.col_id))
|
||||
else:
|
||||
txt = rtext
|
||||
if txt:
|
||||
|
Loading…
x
Reference in New Issue
Block a user