1
0
Fork 0

Merge pull request #114 from olysonek/master

tuned-gui: Sort plugins based on their name
This commit is contained in:
Jaroslav Škarvada 2018-07-11 17:44:16 +02:00 committed by GitHub
commit 3e4d491492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -278,7 +278,8 @@ class Base(object):
self.treestore_profiles = Gtk.ListStore(GObject.TYPE_STRING,
GObject.TYPE_STRING)
self.treestore_plugins = Gtk.ListStore(GObject.TYPE_STRING)
for plugin in sorted(self.plugin_loader.plugins):
for plugin in sorted(self.plugin_loader.plugins,
key = lambda plugin: plugin.name):
self.treestore_plugins.append([plugin.name])
self.combobox_plugins = \
self.builder.get_object('comboboxPlugins')