about summary refs log tree commit diff stats
path: root/widgets/account-wizard.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-28 10:32:32 -0400
committerDrew DeVault <sir@cmpwn.com>2020-05-28 10:32:32 -0400
commit76a91813d8dc0f0011202f8120fc197097f022aa (patch)
treeff4cd6581d3af0911954a37550602366d2bb0e2f /widgets/account-wizard.go
parentb9af9b5fb1c4f226499ab9c56d3e24f2b9b2db24 (diff)
downloadaerc-76a91813d8dc0f0011202f8120fc197097f022aa.tar.gz
Revert "Remove duration from the status methods"
This reverts commit f06d683688e3d2139b14f67b7e349089e7200bf4.
Diffstat (limited to 'widgets/account-wizard.go')
-rw-r--r--widgets/account-wizard.go7
1 files changed, 4 insertions, 3 deletions
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)
 			}
 		}
 	}