Merge pull request #3264 from InspectorCaracal/evmenu-patch-1
Add back initial `helptext` definition
This commit is contained in:
commit
f7f877275b
1 changed files with 2 additions and 0 deletions
|
|
@ -918,6 +918,8 @@ class EvMenu:
|
||||||
# helptext can also be a dict, which allows for tooltip command-text (key-value) or
|
# helptext can also be a dict, which allows for tooltip command-text (key-value) or
|
||||||
# ((key,aliases)-value) pairs.
|
# ((key,aliases)-value) pairs.
|
||||||
|
|
||||||
|
# make sure helptext is defined
|
||||||
|
helptext = ""
|
||||||
if is_iter(nodetext):
|
if is_iter(nodetext):
|
||||||
nodetext, *helptext = nodetext
|
nodetext, *helptext = nodetext
|
||||||
helptext = helptext[0] if helptext else ""
|
helptext = helptext[0] if helptext else ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue