Skip to content

Commit

Permalink
Correctly order groups/descriptions in HelpMenuList
Browse files Browse the repository at this point in the history
After I added the map context from the keymap.xmls as kind of 'free'
groeping option in the helpmenu list beside the hardcoded descriptions
in the enigma2 when it was ordered on the map context strings then the
ordering was not correct. This resolved the ordering
  • Loading branch information
Littlesat committed Dec 16, 2024
1 parent 4c083dc commit 444bbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/HelpMenuList.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _sortKeyAlpha(self, hlp):

def _sortHeadingsAlpha(self, a):
# ignore case
return (getattr(a[0], "description", None) or "").lower()
return (getattr(a[0], "description", None) or _(re.sub(r"(\w)([A-Z])([a-z])", r"\1 \2\3", a[1]))).lower()

def ok(self):
# a list entry has a "private" tuple as first entry...
Expand Down

0 comments on commit 444bbf9

Please sign in to comment.