mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
1e4f3856a4
commit
f11c874fb9
@ -64,7 +64,6 @@ def all_actions():
|
|||||||
'print': Action('print.png', _('Print book'), 'print'),
|
'print': Action('print.png', _('Print book'), 'print'),
|
||||||
'preferences': Action('config.png', _('Preferences'), 'preferences'),
|
'preferences': Action('config.png', _('Preferences'), 'preferences'),
|
||||||
'metadata': Action('metadata.png', _('Show book metadata'), 'metadata'),
|
'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'),
|
'toggle_highlights': Action('highlight_only_on.png', _('Browse highlights in book'), 'toggle_highlights'),
|
||||||
}
|
}
|
||||||
all_actions.ans = Actions(amap)
|
all_actions.ans = Actions(amap)
|
||||||
@ -73,7 +72,7 @@ def all_actions():
|
|||||||
|
|
||||||
DEFAULT_ACTIONS = (
|
DEFAULT_ACTIONS = (
|
||||||
'back', 'forward', None, 'open', 'copy', 'increase_font_size', 'decrease_font_size', 'fullscreen', 'color_scheme',
|
'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'
|
'mode', 'print', 'preferences', 'metadata', 'inspector'
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -170,7 +169,6 @@ class ActionsToolBar(ToolBar):
|
|||||||
a.setCheckable(True)
|
a.setCheckable(True)
|
||||||
self.reference_action = a = shortcut_action('reference')
|
self.reference_action = a = shortcut_action('reference')
|
||||||
a.setCheckable(True)
|
a.setCheckable(True)
|
||||||
self.highlight_action = a = shortcut_action('highlight')
|
|
||||||
self.toggle_highlights_action = self.highlights_action = a = shortcut_action('toggle_highlights')
|
self.toggle_highlights_action = self.highlights_action = a = shortcut_action('toggle_highlights')
|
||||||
a.setCheckable(True)
|
a.setCheckable(True)
|
||||||
self.lookup_action = a = shortcut_action('lookup')
|
self.lookup_action = a = shortcut_action('lookup')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user