mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Ensure all entries for optional views in the view menu are in alphabetical order
This commit is contained in:
parent
a51338f8f6
commit
27788f7a78
@ -519,7 +519,8 @@ class Main(MainWindow):
|
||||
e = b.addMenu(_('&View'))
|
||||
t = e.addMenu(_('Tool&bars'))
|
||||
e.addSeparator()
|
||||
for name, ac in actions.iteritems():
|
||||
for name in sorted(actions, key=lambda x:sort_key(actions[x].text())):
|
||||
ac = actions[name]
|
||||
if name.endswith('-dock'):
|
||||
e.addAction(ac)
|
||||
elif name.endswith('-bar'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user