mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Annotations browser: Show a dot for highlights with notes. Fixes #1899839 [[Enhancement] Show a dot when a highlight contains annotations in the Annotations browser](https://bugs.launchpad.net/calibre/+bug/1899839)
This commit is contained in:
parent
c78081c26e
commit
be110c453d
@ -75,7 +75,7 @@ def annotation_title(atype, singular=False):
|
||||
class AnnotsResultsDelegate(ResultsDelegate):
|
||||
|
||||
add_ellipsis = False
|
||||
emphasize_text = True
|
||||
emphasize_text = False
|
||||
|
||||
def result_data(self, result):
|
||||
if not isinstance(result, dict):
|
||||
@ -90,6 +90,8 @@ class AnnotsResultsDelegate(ResultsDelegate):
|
||||
before, text = parts
|
||||
else:
|
||||
text = parts[0]
|
||||
if result.get('annotation', {}).get('notes'):
|
||||
before = '•' + (before or '')
|
||||
return False, before, text, after
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user