Merge pull request #3264 from InspectorCaracal/evmenu-patch-1

Add back initial `helptext` definition
This commit is contained in:
Griatch 2023-08-28 18:55:35 +02:00 committed by GitHub
commit f7f877275b

View file

@ -918,6 +918,8 @@ class EvMenu:
# helptext can also be a dict, which allows for tooltip command-text (key-value) or
# ((key,aliases)-value) pairs.
# make sure helptext is defined
helptext = ""
if is_iter(nodetext):
nodetext, *helptext = nodetext
helptext = helptext[0] if helptext else ""