mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix regression that removed the ability to set a shortcut for the 'Book list header menu' action
This commit is contained in:
parent
fa19925f86
commit
2260c22cac
@ -2,8 +2,6 @@
|
|||||||
# License: GPLv3 Copyright: 2022, Charles Haley
|
# License: GPLv3 Copyright: 2022, Charles Haley
|
||||||
#
|
#
|
||||||
|
|
||||||
from qt.core import QToolButton
|
|
||||||
|
|
||||||
from calibre.gui2.actions import InterfaceAction
|
from calibre.gui2.actions import InterfaceAction
|
||||||
|
|
||||||
|
|
||||||
@ -11,9 +9,8 @@ class BooklistContextMenuAction(InterfaceAction):
|
|||||||
|
|
||||||
name = 'Booklist context menu'
|
name = 'Booklist context menu'
|
||||||
action_spec = (_('Book list header menu'), 'context_menu.png',
|
action_spec = (_('Book list header menu'), 'context_menu.png',
|
||||||
_('Show the book list header context menu'), None)
|
_('Show the book list header context menu'), ())
|
||||||
action_type = 'current'
|
action_type = 'current'
|
||||||
popup_type = QToolButton.ToolButtonPopupMode.InstantPopup
|
|
||||||
action_add_menu = False
|
action_add_menu = False
|
||||||
dont_add_to = frozenset(['context-menu-device', 'menubar-device'])
|
dont_add_to = frozenset(['context-menu-device', 'menubar-device'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user