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

@ -9,7 +9,6 @@ import (
"os"
"path"
"strings"
"time"
"git.sr.ht/~sircmpwn/aerc/models"
"git.sr.ht/~sircmpwn/aerc/widgets"
@ -84,7 +83,7 @@ func (forward) Execute(aerc *widgets.Aerc, args []string) error {
composer, err := widgets.NewComposer(aerc, acct, aerc.Config(), acct.AccountConfig(),
acct.Worker(), template, defaults, original)
if err != nil {
aerc.PushError("Error: "+err.Error(), 10*time.Second)
aerc.PushError("Error: " + err.Error())
return nil, err
}