mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -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.
|
dialog will position the editor on that item.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
tags_model = self.tags_view.model()
|
db=self.library_view.model().db
|
||||||
result = tags_model.get_category_editor_data(category)
|
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:
|
if result is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -211,7 +215,6 @@ class TagBrowserMixin(object): # {{{
|
|||||||
else:
|
else:
|
||||||
key = sort_key
|
key = sort_key
|
||||||
|
|
||||||
db=self.library_view.model().db
|
|
||||||
d = TagListEditor(self, cat_name=db.field_metadata[category]['name'],
|
d = TagListEditor(self, cat_name=db.field_metadata[category]['name'],
|
||||||
tag_to_match=tag, data=result, sorter=key)
|
tag_to_match=tag, data=result, sorter=key)
|
||||||
d.exec_()
|
d.exec_()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user