Skip to content

Commit

Permalink
[config.usage.sort_settings] sort ConfigList by text item only
Browse files Browse the repository at this point in the history
Sister commit: 807b5af
  • Loading branch information
Huevos committed May 21, 2022
1 parent 9534cd4 commit 564d4b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -103,7 +103,7 @@ def createSetup(self):
self.color_spaceEntry = addToConfigList(_("Color space"), config.pep.color_space, _("This option sets the picture color space."))
self["config"].list = self.list
if config.usage.sort_settings.value:
self["config"].list.sort()
self["config"].list.sort(key=lambda x: x[0])

def PreviewClosed(self):
self["config"].invalidate(self["config"].getCurrent())
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Screens/FactoryReset.py
Expand Up @@ -62,7 +62,7 @@ def createSetup(self):
currentItem = self["config"].getCurrent()
self["config"].list = self.list
if config.usage.sort_settings.value:
self["config"].list.sort()
self["config"].list.sort(key=lambda x: x[0])
self.moveToItem(currentItem)

def analyseEnigma2(self):
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Screens/VideoMode.py
Expand Up @@ -163,7 +163,7 @@ def createSetup(self):
# self.list.append(getConfigListEntry(_("Scaler sharpness"), config.av.scaler_sharpness, _("This option configures the picture sharpness.")))
self["config"].list = self.list
if config.usage.sort_settings.value:
self["config"].list.sort()
self["config"].list.sort(key=lambda x: x[0])

def keyLeft(self):
ConfigListScreen.keyLeft(self)
Expand Down

0 comments on commit 564d4b8

Please sign in to comment.