From e53948ca3917c4aed542aa237d4dbf7028a55dcf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 18 Oct 2022 11:13:27 +0530 Subject: [PATCH] No shortcut is indicated by None not '' --- src/calibre/gui2/actions/booklist_context_menu.py | 2 +- src/calibre/gui2/actions/saved_searches.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/actions/booklist_context_menu.py b/src/calibre/gui2/actions/booklist_context_menu.py index 01d66539e5..e69884ecb5 100644 --- a/src/calibre/gui2/actions/booklist_context_menu.py +++ b/src/calibre/gui2/actions/booklist_context_menu.py @@ -9,7 +9,7 @@ class BooklistContextMenuAction(InterfaceAction): name = 'Booklist context menu' action_spec = (_('Book list header menu'), 'context_menu.png', - _('Show the book list header context menu'), '') + _('Show the book list header context menu'), None) action_type = 'current' action_add_menu = False dont_add_to = frozenset(['context-menu-device', 'menubar-device']) diff --git a/src/calibre/gui2/actions/saved_searches.py b/src/calibre/gui2/actions/saved_searches.py index 365f6055ff..eb9161a432 100644 --- a/src/calibre/gui2/actions/saved_searches.py +++ b/src/calibre/gui2/actions/saved_searches.py @@ -13,7 +13,7 @@ class SavedSearchesAction(InterfaceAction): name = 'Saved searches' action_spec = (_('Saved searches'), 'folder_saved_search.png', - _('Show a menu of saved searches'), '') + _('Show a menu of saved searches'), None) action_type = 'current' action_add_menu = True dont_add_to = frozenset(('context-menu-device', 'menubar-device'))