From 2260c22cac00a64f0eaf213324763683290a5121 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 4 Nov 2022 12:23:27 +0000 Subject: [PATCH] Fix regression that removed the ability to set a shortcut for the 'Book list header menu' action --- src/calibre/gui2/actions/booklist_context_menu.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/calibre/gui2/actions/booklist_context_menu.py b/src/calibre/gui2/actions/booklist_context_menu.py index 6f2937f94b..7a854b4108 100644 --- a/src/calibre/gui2/actions/booklist_context_menu.py +++ b/src/calibre/gui2/actions/booklist_context_menu.py @@ -2,8 +2,6 @@ # License: GPLv3 Copyright: 2022, Charles Haley # -from qt.core import QToolButton - from calibre.gui2.actions import InterfaceAction @@ -11,9 +9,8 @@ class BooklistContextMenuAction(InterfaceAction): name = 'Booklist context menu' 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' - popup_type = QToolButton.ToolButtonPopupMode.InstantPopup action_add_menu = False dont_add_to = frozenset(['context-menu-device', 'menubar-device'])