mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 09:33:42 +02:00
Store: Always sort stores in case-insentive alphabetical order.
This commit is contained in:
parent
4a20c220f1
commit
f4878b5c7f
2 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ def load_menu(self):
|
|||
self.store_menu.clear()
|
||||
self.store_menu.addAction(_('Search'), self.search)
|
||||
self.store_menu.addSeparator()
|
||||
for n, p in self.gui.istores.items():
|
||||
for n, p in sorted(self.gui.istores.items(), key=lambda x: x[0].lower()):
|
||||
self.store_menu.addAction(n, partial(self.open_store, p))
|
||||
self.qaction.setMenu(self.store_menu)
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ def __init__(self, istores, *args):
|
|||
# per search basis.
|
||||
stores_group_layout = QVBoxLayout()
|
||||
self.stores_group.setLayout(stores_group_layout)
|
||||
for x in self.store_plugins:
|
||||
for x in sorted(self.store_plugins.keys(), key=lambda x: x.lower()):
|
||||
cbox = QCheckBox(x)
|
||||
cbox.setChecked(True)
|
||||
stores_group_layout.addWidget(cbox)
|
||||
|
|
|
|||
Loading…
Reference in a new issue