mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Add the full item name to the tool tip of a leaf item displayed in the tag browser
This commit is contained in:
parent
d7bb9fa6ff
commit
316a9539d8
@ -1892,7 +1892,6 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
# icon_map is not None if get_categories is to store an icon and
|
# icon_map is not None if get_categories is to store an icon and
|
||||||
# possibly a tooltip in the tag structure.
|
# possibly a tooltip in the tag structure.
|
||||||
icon = None
|
icon = None
|
||||||
tooltip = '(' + category + ')'
|
|
||||||
label = tb_cats.key_to_label(category)
|
label = tb_cats.key_to_label(category)
|
||||||
if icon_map:
|
if icon_map:
|
||||||
if not tb_cats.is_custom_field(category):
|
if not tb_cats.is_custom_field(category):
|
||||||
@ -1946,7 +1945,9 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
is_editable = category not in ['news', 'rating', 'languages']
|
is_editable = category not in ['news', 'rating', 'languages']
|
||||||
categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
|
categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
|
||||||
avg=avgr(r), sort=r.s, icon=icon,
|
avg=avgr(r), sort=r.s, icon=icon,
|
||||||
tooltip=tooltip, category=category,
|
tooltip=u'({0}:{1})'.format(category,
|
||||||
|
formatter(r.n)),
|
||||||
|
category=category,
|
||||||
id_set=r.id_set, is_editable=is_editable,
|
id_set=r.id_set, is_editable=is_editable,
|
||||||
use_sort_as_name=use_sort_as_name)
|
use_sort_as_name=use_sort_as_name)
|
||||||
for r in items]
|
for r in items]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user