mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 11:38:32 +02:00
fix bug with panel titles always showing 'error' after one error
This commit is contained in:
parent
59e3477043
commit
222a6969e6
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue