fix bug with panel titles always showing 'error' after one error

This commit is contained in:
Jonathan Wren 2022-05-16 12:06:07 -07:00
parent 59e3477043
commit 222a6969e6

View file

@ -77,8 +77,7 @@ def print_msgs(
def _add_extra_style_args_if_needed(args, msg):
args["border_style"] = msg.style.color
if msg.style == MsgStyle.ERROR:
args["title"] = "Error"
args["title"] = "Error" if msg.style == MsgStyle.ERROR else None
return args