From 76a91813d8dc0f0011202f8120fc197097f022aa Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 28 May 2020 10:32:32 -0400 Subject: Revert "Remove duration from the status methods" This reverts commit f06d683688e3d2139b14f67b7e349089e7200bf4. --- widgets/account-wizard.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'widgets/account-wizard.go') diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go index 9bdac98..e247dd2 100644 --- a/widgets/account-wizard.go +++ b/widgets/account-wizard.go @@ -10,6 +10,7 @@ import ( "path" "strconv" "strings" + "time" "github.com/gdamore/tcell" "github.com/go-ini/ini" @@ -428,7 +429,7 @@ func (wizard *AccountWizard) ConfigureTemporaryAccount(temporary bool) { func (wizard *AccountWizard) errorFor(d ui.Interactive, err error) { if d == nil { - wizard.aerc.PushError(" " + err.Error()) + wizard.aerc.PushError(" "+err.Error(), 10*time.Second) wizard.Invalidate() return } @@ -443,7 +444,7 @@ func (wizard *AccountWizard) errorFor(d ui.Interactive, err error) { wizard.step = step wizard.focus = focus wizard.Focus(true) - wizard.aerc.PushError(" " + err.Error()) + wizard.aerc.PushError(" "+err.Error(), 10*time.Second) wizard.Invalidate() return } @@ -554,7 +555,7 @@ func (wizard *AccountWizard) finish(tutorial bool) { term.OnClose = func(err error) { wizard.aerc.RemoveTab(term) if err != nil { - wizard.aerc.PushError(" " + err.Error()) + wizard.aerc.PushError(" "+err.Error(), 10*time.Second) } } } -- cgit 1.4.1-2-gfad0