aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/aerc/main.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/cmd/aerc/main.go b/cmd/aerc/main.go
index 4adf11ef..9da7b3e1 100644
--- a/cmd/aerc/main.go
+++ b/cmd/aerc/main.go
@@ -14,6 +14,11 @@ func main() {
if err != nil {
panic(err)
}
+ _ui, err := ui.Initialize(conf)
+ if err != nil {
+ panic(err)
+ }
+ defer _ui.Close()
var workers []worker.Worker
for _, account := range conf.Accounts {
work, err := worker.NewWorker(account.Source)
@@ -23,12 +28,8 @@ func main() {
go work.Run()
work.PostAction(types.Configure{Config: account})
workers = append(workers, work)
+ _ui.AddTab(ui.NewAccountTab(&account, &work))
}
- _ui, err := ui.Initialize(conf)
- if err != nil {
- panic(err)
- }
- defer _ui.Close()
for !_ui.Exit {
activity := false
for _, worker := range workers {