aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 484fd88e..3c6566de 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -62,6 +62,12 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger,
tabs.Add(view, acct.Name)
}
+ if len(conf.Accounts) == 0 {
+ wizard := NewAccountWizard(aerc.Config(), aerc)
+ wizard.Focus(true)
+ aerc.NewTab(wizard, "New account")
+ }
+
return aerc
}