cli prompt: fix bottom toolbar displayed even if message is empty

This commit is contained in:
Alexandre Aubin 2021-10-20 18:31:29 +02:00
parent 5d61b74fde
commit c44e025210

View file

@ -561,11 +561,11 @@ class Interface:
} }
) )
def bottom_toolbar():
if help: if help:
def bottom_toolbar():
return [("class:", help)] return [("class:", help)]
else: else:
return [] bottom_toolbar = None
colored_message = [ colored_message = [
("class:message", message), ("class:message", message),