From be110c453df1efd3bc5efe70b88bf228183d5222 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 2 Nov 2020 13:41:41 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/library/annotations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/annotations.py b/src/calibre/gui2/library/annotations.py index 8080784766..1ad7e6affc 100644 --- a/src/calibre/gui2/library/annotations.py +++ b/src/calibre/gui2/library/annotations.py @@ -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