Add an edit notes action to the context menu in the viewer highlights panel. See #1905646 (Can not use input method to write the note)

This commit is contained in:
Kovid Goyal 2020-11-26 07:40:47 +05:30
parent 18a8ecd534
commit 1b81fdf35e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -170,6 +170,7 @@ class Highlights(QTreeWidget):
self.context_menu = m = QMenu(self)
if h is not None:
m.addAction(QIcon(I('edit_input.png')), _('Modify this highlight'), self.edit_requested.emit)
m.addAction(QIcon(I('edit_input.png')), _('Edit notes for this highlight'), self.edit_notes_requested.emit)
m.addAction(QIcon(I('trash.png')), ngettext(
'Delete this highlight', 'Delete selected highlights', len(self.selectedItems())
), self.delete_requested.emit)