From 7c89143c709e58f22a4939886ccb15bd639eec17 Mon Sep 17 00:00:00 2001 From: Ben Fiedler Date: Thu, 23 Apr 2020 03:56:28 +0200 Subject: Use aerc.PushError where appropriate Forgot an unused import, to save you the hassle here is v2. --- commands/msg/read.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'commands/msg/read.go') diff --git a/commands/msg/read.go b/commands/msg/read.go index ef075236..8613f3f9 100644 --- a/commands/msg/read.go +++ b/commands/msg/read.go @@ -7,8 +7,6 @@ import ( "git.sr.ht/~sircmpwn/getopt" - "github.com/gdamore/tcell" - "git.sr.ht/~sircmpwn/aerc/lib" "git.sr.ht/~sircmpwn/aerc/models" "git.sr.ht/~sircmpwn/aerc/widgets" @@ -95,8 +93,7 @@ func submitReadChange(aerc *widgets.Aerc, store *lib.MessageStore, case *types.Done: aerc.PushStatus(msg_success, 10*time.Second) case *types.Error: - aerc.PushStatus(" "+msg.Error.Error(), 10*time.Second). - Color(tcell.ColorDefault, tcell.ColorRed) + aerc.PushError(" "+msg.Error.Error()) } }) } @@ -109,8 +106,7 @@ func submitReadChangeWg(aerc *widgets.Aerc, store *lib.MessageStore, case *types.Done: wg.Done() case *types.Error: - aerc.PushStatus(" "+msg.Error.Error(), 10*time.Second). - Color(tcell.ColorDefault, tcell.ColorRed) + aerc.PushError(" "+msg.Error.Error()) *success = false wg.Done() } -- cgit