Show a dot next to highlights with notes in the viewer highlights panel

This commit is contained in:
Kovid Goyal 2020-09-14 20:22:32 +05:30
parent a4df5cc67b
commit 2196b708fa
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -203,6 +203,8 @@ class Highlights(QTreeWidget):
for itemnum, h in enumerate(items): for itemnum, h in enumerate(items):
txt = h.get('highlighted_text') txt = h.get('highlighted_text')
txt = txt.replace('\n', ' ') txt = txt.replace('\n', ' ')
if h.get('notes'):
txt = '' + txt
if len(txt) > 100: if len(txt) > 100:
txt = txt[:100] + '' txt = txt[:100] + ''
item = QTreeWidgetItem(section, [txt], 2) item = QTreeWidgetItem(section, [txt], 2)