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:
parent
0f78f06610
commit
f06d683688
29 changed files with 74 additions and 104 deletions
commands/msgview
|
@ -128,10 +128,10 @@ func (Save) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
go func() {
|
||||
err := <-ch
|
||||
if err != nil {
|
||||
aerc.PushError(fmt.Sprintf("Save failed: %v", err), 10*time.Second)
|
||||
aerc.PushError(fmt.Sprintf("Save failed: %v", err))
|
||||
return
|
||||
}
|
||||
aerc.PushStatus("Saved to "+path, 10*time.Second)
|
||||
aerc.PushStatus("Saved to " + path)
|
||||
}()
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue