diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-22 11:35:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-22 11:35:55 -0400 |
commit | 9b19e3ad054132fdab4062915f70122faaa5c163 (patch) | |
tree | 4a41b871550f6fd692711a56aa9b2b7898c8c8f2 /widgets/aerc.go | |
parent | 1a45b793c7d1d59e209be3eb4b4f794a78085e5d (diff) | |
download | aerc-9b19e3ad054132fdab4062915f70122faaa5c163.tar.gz |
Show account wizard if no accounts configured
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r-- | widgets/aerc.go | 6 |
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 } |