mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 07:36:06 +01:00
Show a dot next to highlights with notes in the viewer highlights panel
This commit is contained in:
parent
a4df5cc67b
commit
2196b708fa
1 changed files with 2 additions and 0 deletions
|
|
@ -203,6 +203,8 @@ def load(self, highlights):
|
|||
for itemnum, h in enumerate(items):
|
||||
txt = h.get('highlighted_text')
|
||||
txt = txt.replace('\n', ' ')
|
||||
if h.get('notes'):
|
||||
txt = '•' + txt
|
||||
if len(txt) > 100:
|
||||
txt = txt[:100] + '…'
|
||||
item = QTreeWidgetItem(section, [txt], 2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue