mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:14:36 +02:00
Add the full item name to the tool tip of a leaf item displayed in the tag browser. Fixes #1106231 (Some enhancements for Tags)
This commit is contained in:
parent
f1dce0942c
commit
08fc8e274a
1 changed files with 3 additions and 2 deletions
|
|
@ -1881,7 +1881,6 @@ def get_categories(self, sort='name', ids=None, icon_map=None):
|
|||
# icon_map is not None if get_categories is to store an icon and
|
||||
# possibly a tooltip in the tag structure.
|
||||
icon = None
|
||||
tooltip = '(' + category + ')'
|
||||
label = tb_cats.key_to_label(category)
|
||||
if icon_map:
|
||||
if not tb_cats.is_custom_field(category):
|
||||
|
|
@ -1935,7 +1934,9 @@ def get_categories(self, sort='name', ids=None, icon_map=None):
|
|||
is_editable = category not in ['news', 'rating', 'languages']
|
||||
categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
|
||||
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,
|
||||
use_sort_as_name=use_sort_as_name)
|
||||
for r in items]
|
||||
|
|
|
|||
Loading…
Reference in a new issue