mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fix #1914207 [Tag Browser: Average rating tooltip shows on hierarchical search](https://bugs.launchpad.net/calibre/+bug/1914207)
This commit is contained in:
commit
16f2e83b5c
@ -216,7 +216,7 @@ class TagTreeItem(object): # {{{
|
||||
ar = self.average_rating
|
||||
if ar:
|
||||
tt.append(_('Average rating for books in this category: %.1f') % ar)
|
||||
elif self.type == self.TAG and ar is not None:
|
||||
elif self.type == self.TAG and ar is not None and self.tag.category != 'search':
|
||||
tt.append(_('Books in this category are unrated'))
|
||||
if self.type == self.TAG and self.tag.category == 'search':
|
||||
tt.append(_('Search expression:') + ' ' + self.tag.search_expression)
|
||||
|
Loading…
x
Reference in New Issue
Block a user