Remove duration from the status methods

We always set 10 seconds anyhow, might as well do that without repeating ourselfs.
This commit is contained in:
Reto Brunner 2020-05-27 07:52:13 +02:00
parent 0f78f06610
commit f06d683688
29 changed files with 74 additions and 104 deletions
commands/msg

View file

@ -3,7 +3,6 @@ package msg
import (
"errors"
"strings"
"time"
"git.sr.ht/~sircmpwn/getopt"
@ -69,9 +68,9 @@ func (Move) Execute(aerc *widgets.Aerc, args []string) error {
switch msg := msg.(type) {
case *types.Done:
aerc.PushStatus("Message moved to "+joinedArgs, 10*time.Second)
aerc.PushStatus("Message moved to " + joinedArgs)
case *types.Error:
aerc.PushError(" "+msg.Error.Error(), 10*time.Second)
aerc.PushError(" " + msg.Error.Error())
}
})
return nil