From c44e0252101a62844381e93d93c9d099fcb13497 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 20 Oct 2021 18:31:29 +0200 Subject: [PATCH] cli prompt: fix bottom toolbar displayed even if message is empty --- moulinette/interfaces/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moulinette/interfaces/cli.py b/moulinette/interfaces/cli.py index 797604d2..92b2c3d5 100644 --- a/moulinette/interfaces/cli.py +++ b/moulinette/interfaces/cli.py @@ -561,11 +561,11 @@ class Interface: } ) - def bottom_toolbar(): - if help: + if help: + def bottom_toolbar(): return [("class:", help)] - else: - return [] + else: + bottom_toolbar = None colored_message = [ ("class:message", message),