mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1886882 ["Sort by" unavailable in main toolbar when device is connected](https://bugs.launchpad.net/calibre/+bug/1886882)
This commit is contained in:
parent
fc2ba657f8
commit
1578573a7b
@ -32,9 +32,7 @@ class SortByAction(InterfaceAction):
|
||||
action_type = 'current'
|
||||
popup_type = QToolButton.InstantPopup
|
||||
action_add_menu = True
|
||||
dont_add_to = frozenset([
|
||||
'toolbar-device', 'context-menu-device', 'menubar', 'menubar-device',
|
||||
'context-menu-cover-browser'])
|
||||
dont_add_to = frozenset(('context-menu-cover-browser', ))
|
||||
|
||||
def genesis(self):
|
||||
self.sorted_icon = QIcon(I('ok.png'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user