about summary refs log tree commit diff stats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-13 13:03:28 -0500
committerDrew DeVault <sir@cmpwn.com>2019-01-13 13:03:28 -0500
commit0911cd5050cbbdbc48ba17a586beb7ee055f5867 (patch)
treefc5f8b5ac83260c407223d2bf418cfc76e760581 /widgets/aerc.go
parent648ca983f6b2ef29378c32d1ebb6d67798f4af6d (diff)
downloadaerc-0911cd5050cbbdbc48ba17a586beb7ee055f5867.tar.gz
Initialize worker in account widget
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 3bd082e..4351f3b 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -42,7 +42,12 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger) *Aerc {
 	mainGrid.AddChild(tabs.TabContent).At(1, 0).Span(1, 2)
 
 	for _, acct := range conf.Accounts {
-		tabs.Add(NewAccountView(&acct, statusbar), acct.Name)
+		view, err := NewAccountView(&acct, logger, statusbar)
+		if err != nil {
+			// TODO: something useful (update statusline?)
+			panic(err)
+		}
+		tabs.Add(view, acct.Name)
 	}
 
 	return &Aerc{