mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 14:35:30 +01:00
Plugin customization GUI: Sort plugins by name
This commit is contained in:
parent
66d2604458
commit
fcdcd68adf
1 changed files with 3 additions and 0 deletions
|
|
@ -109,6 +109,9 @@ def populate(self):
|
|||
self._data[plugin.type].append(plugin)
|
||||
self.categories = sorted(self._data.keys())
|
||||
|
||||
for plugins in self._data.values():
|
||||
plugins.sort(cmp=lambda x, y: cmp(x.name.lower(), y.name.lower()))
|
||||
|
||||
def index(self, row, column, parent):
|
||||
if not self.hasIndex(row, column, parent):
|
||||
return QModelIndex()
|
||||
|
|
|
|||
Loading…
Reference in a new issue