No shortcut is indicated by None not ''

This commit is contained in:
Kovid Goyal 2022-10-18 11:13:27 +05:30
parent 0fbbc255b3
commit e53948ca39
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ 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'), '') _('Show the book list header context menu'), None)
action_type = 'current' action_type = 'current'
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'])

View File

@ -13,7 +13,7 @@ class SavedSearchesAction(InterfaceAction):
name = 'Saved searches' name = 'Saved searches'
action_spec = (_('Saved searches'), 'folder_saved_search.png', 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_type = 'current'
action_add_menu = True action_add_menu = True
dont_add_to = frozenset(('context-menu-device', 'menubar-device')) dont_add_to = frozenset(('context-menu-device', 'menubar-device'))