From 749dbb93a4af2dc3afdda4c9fe8a300b43a69d0f Mon Sep 17 00:00:00 2001 From: Heiko Carrasco Date: Wed, 8 Jul 2020 18:03:34 +0200 Subject: Use PushStatus instead of SetStatus where it makes sense --- widgets/account.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'widgets/account.go') diff --git a/widgets/account.go b/widgets/account.go index 313a364a..211f09d7 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -273,8 +273,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { acct.labels = msg.Labels case *types.Error: acct.logger.Printf("%v", msg.Error) - acct.host.SetStatus(fmt.Sprintf("%v", msg.Error)). - Color(tcell.ColorDefault, tcell.ColorRed) + acct.aerc.PushError(fmt.Sprintf("%v", msg.Error)) } } -- cgit