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 --- commands/account/clear.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/account/clear.go') diff --git a/commands/account/clear.go b/commands/account/clear.go index 392fdd0..263b5de 100644 --- a/commands/account/clear.go +++ b/commands/account/clear.go @@ -2,6 +2,7 @@ package account import ( "errors" + "time" "git.sr.ht/~sircmpwn/aerc/widgets" ) @@ -29,6 +30,6 @@ func (Clear) Execute(aerc *widgets.Aerc, args []string) error { return errors.New("Cannot perform action. Messages still loading") } store.ApplyClear() - aerc.SetStatus("Clear complete.") + aerc.PushStatus("Clear complete.", 10*time.Second) return nil } -- cgit v1.2.3