Skip to content

Commit

Permalink
In ConfigList when we have no helptext use text as helptext
Browse files Browse the repository at this point in the history
This for the yellow, blue and menu button functionality
  • Loading branch information
Littlesat committed Jan 7, 2025
1 parent 3bd9966 commit 8e053a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/python/Components/ConfigList.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,17 @@ def __init__(self, list, session=None, on_change=None, fullUI=False, yellow_butt
if "key_yellow" not in self and yellow_button:
self["key_yellow"] = StaticText(yellow_button.get('text', ''))
self["key_yellowActions"] = HelpableActionMap(self, ["ColorActions"], {
"yellow": (yellow_button['function'], yellow_button.get('helptext', _("Yellow button function"))),
"yellow": (yellow_button['function'], yellow_button.get('helptext', yellow_button.get('text', _("Yellow button function")))),
}, prio=1)
if "key_blue" not in self and blue_button:
self["key_blue"] = StaticText(blue_button.get('text', ''))
self["key_blueActions"] = HelpableActionMap(self, ["ColorActions"], {
"blue": (blue_button['function'], blue_button.get('helptext', _("Blue button function"))),
"blue": (blue_button['function'], blue_button.get('helptext', blue_button.get('text', _("Blue button function")))),
}, prio=1)
if "key_menu" not in self and menu_button:
self["key_menu"] = StaticText(menu_button.get('text', ''))
self["menuConfigActions"] = HelpableActionMap(self, "ConfigListActions", {
"menu": (menu_button['function'], menu_button.get('helptext', _("Menu button function"))),
"menu": (menu_button['function'], menu_button.get('helptext', menu_button.get('text', _("Menu button function")))),
}, prio=1)
self["fullUIActions"] = HelpableActionMap(self, ["ConfigListActions"], {
"cancel": (self.keyCancel, _("Cancel any changed settings and exit")),
Expand Down

1 comment on commit 8e053a4

@Huevos
Copy link
Contributor

@Huevos Huevos commented on 8e053a4 Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the point duplicating these messages?

Please sign in to comment.