about summary refs log tree commit diff stats
path: root/widgets/compose.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-27 07:52:13 +0200
committerReto Brunner <reto@labrat.space>2020-05-27 08:11:40 +0200
commitf06d683688e3d2139b14f67b7e349089e7200bf4 (patch)
treeeee331112cbcfeafdb8cd6ba126d9e51ed72b10a /widgets/compose.go
parent0f78f06610c0e8887aba2ae50e99b86477a384b3 (diff)
downloadaerc-f06d683688e3d2139b14f67b7e349089e7200bf4.tar.gz
Remove duration from the status methods
We always set 10 seconds anyhow, might as well do that without repeating ourselfs.
Diffstat (limited to 'widgets/compose.go')
-rw-r--r--widgets/compose.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index f85e1f3..a0faf58 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -73,7 +73,7 @@ func NewComposer(aerc *Aerc, acct *AccountView, conf *config.AercConfig,
 	templateData := templates.ParseTemplateData(defaults, original)
 	cmpl := completer.New(conf.Compose.AddressBookCmd, func(err error) {
 		aerc.PushError(
-			fmt.Sprintf("could not complete header: %v", err), 10*time.Second)
+			fmt.Sprintf("could not complete header: %v", err))
 		worker.Logger.Printf("could not complete header: %v", err)
 	}, aerc.Logger())
 	layout, editors, focusable := buildComposeHeader(aerc, cmpl, defaults)
@@ -261,8 +261,7 @@ func (c *Composer) readSignatureFromFile() []byte {
 	signature, err := ioutil.ReadFile(sigFile)
 	if err != nil {
 		c.aerc.PushError(
-			fmt.Sprintf(" Error loading signature from file: %v", sigFile),
-			10*time.Second)
+			fmt.Sprintf(" Error loading signature from file: %v", sigFile))
 		return nil
 	}
 	return signature