mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: Always sort stores in case-insentive alphabetical order.
This commit is contained in:
parent
4a20c220f1
commit
f4878b5c7f
@ -27,7 +27,7 @@ class StoreAction(InterfaceAction):
|
|||||||
self.store_menu.clear()
|
self.store_menu.clear()
|
||||||
self.store_menu.addAction(_('Search'), self.search)
|
self.store_menu.addAction(_('Search'), self.search)
|
||||||
self.store_menu.addSeparator()
|
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.store_menu.addAction(n, partial(self.open_store, p))
|
||||||
self.qaction.setMenu(self.store_menu)
|
self.qaction.setMenu(self.store_menu)
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class SearchDialog(QDialog, Ui_Dialog):
|
|||||||
# per search basis.
|
# per search basis.
|
||||||
stores_group_layout = QVBoxLayout()
|
stores_group_layout = QVBoxLayout()
|
||||||
self.stores_group.setLayout(stores_group_layout)
|
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 = QCheckBox(x)
|
||||||
cbox.setChecked(True)
|
cbox.setChecked(True)
|
||||||
stores_group_layout.addWidget(cbox)
|
stores_group_layout.addWidget(cbox)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user