aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/account-wizard.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/account-wizard.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/account-wizard.go')
-rw-r--r--widgets/account-wizard.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go
index e247dd23..9bdac982 100644
--- a/widgets/account-wizard.go
+++ b/widgets/account-wizard.go
@@ -10,7 +10,6 @@ import (
"path"
"strconv"
"strings"
- "time"
"github.com/gdamore/tcell"
"github.com/go-ini/ini"
@@ -429,7 +428,7 @@ func (wizard *AccountWizard) ConfigureTemporaryAccount(temporary bool) {
func (wizard *AccountWizard) errorFor(d ui.Interactive, err error) {
if d == nil {
- wizard.aerc.PushError(" "+err.Error(), 10*time.Second)
+ wizard.aerc.PushError(" " + err.Error())
wizard.Invalidate()
return
}
@@ -444,7 +443,7 @@ func (wizard *AccountWizard) errorFor(d ui.Interactive, err error) {
wizard.step = step
wizard.focus = focus
wizard.Focus(true)
- wizard.aerc.PushError(" "+err.Error(), 10*time.Second)
+ wizard.aerc.PushError(" " + err.Error())
wizard.Invalidate()
return
}
@@ -555,7 +554,7 @@ func (wizard *AccountWizard) finish(tutorial bool) {
term.OnClose = func(err error) {
wizard.aerc.RemoveTab(term)
if err != nil {
- wizard.aerc.PushError(" "+err.Error(), 10*time.Second)
+ wizard.aerc.PushError(" " + err.Error())
}
}
}