add back helptext definition

This commit is contained in:
InspectorCaracal 2023-08-23 23:32:40 -06:00 committed by GitHub
parent b819bff556
commit 03b73af3bb

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 ""