Remove the create highlight button from the viewer toolbar

See #1897373 (Viewer: "Highlight text in the book" toolbar button does nothing)
This commit is contained in:
Kovid Goyal 2020-09-27 08:29:20 +05:30
parent 1e4f3856a4
commit f11c874fb9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -64,7 +64,6 @@ def all_actions():
'print': Action('print.png', _('Print book'), 'print'),
'preferences': Action('config.png', _('Preferences'), 'preferences'),
'metadata': Action('metadata.png', _('Show book metadata'), 'metadata'),
'highlight': Action('highlight.png', _('Highlight text in the book'), 'create_annotation'),
'toggle_highlights': Action('highlight_only_on.png', _('Browse highlights in book'), 'toggle_highlights'),
}
all_actions.ans = Actions(amap)
@ -73,7 +72,7 @@ def all_actions():
DEFAULT_ACTIONS = (
'back', 'forward', None, 'open', 'copy', 'increase_font_size', 'decrease_font_size', 'fullscreen', 'color_scheme',
None, 'previous', 'next', None, 'toc', 'search', 'bookmarks', 'lookup', 'highlight', 'chrome', None,
None, 'previous', 'next', None, 'toc', 'search', 'bookmarks', 'lookup', 'toggle_highlights', 'chrome', None,
'mode', 'print', 'preferences', 'metadata', 'inspector'
)
@ -170,7 +169,6 @@ class ActionsToolBar(ToolBar):
a.setCheckable(True)
self.reference_action = a = shortcut_action('reference')
a.setCheckable(True)
self.highlight_action = a = shortcut_action('highlight')
self.toggle_highlights_action = self.highlights_action = a = shortcut_action('toggle_highlights')
a.setCheckable(True)
self.lookup_action = a = shortcut_action('lookup')