mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Make the Manage Category dialog show all items. It already works across VLs.
This commit is contained in:
parent
f2cc364ac0
commit
77046968ae
@ -201,8 +201,12 @@ class TagBrowserMixin(object): # {{{
|
||||
dialog will position the editor on that item.
|
||||
'''
|
||||
|
||||
tags_model = self.tags_view.model()
|
||||
result = tags_model.get_category_editor_data(category)
|
||||
db=self.library_view.model().db
|
||||
data = db.new_api.get_categories()
|
||||
if category in data:
|
||||
result = [(t.id, t.original_name, t.count) for t in data[category] if t.count > 0]
|
||||
else:
|
||||
result = None
|
||||
if result is None:
|
||||
return
|
||||
|
||||
@ -211,7 +215,6 @@ class TagBrowserMixin(object): # {{{
|
||||
else:
|
||||
key = sort_key
|
||||
|
||||
db=self.library_view.model().db
|
||||
d = TagListEditor(self, cat_name=db.field_metadata[category]['name'],
|
||||
tag_to_match=tag, data=result, sorter=key)
|
||||
d.exec_()
|
||||
|
Loading…
x
Reference in New Issue
Block a user