diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-13 13:03:28 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-01-13 13:03:28 -0500 |
commit | 0911cd5050cbbdbc48ba17a586beb7ee055f5867 (patch) | |
tree | fc5f8b5ac83260c407223d2bf418cfc76e760581 /widgets/aerc.go | |
parent | 648ca983f6b2ef29378c32d1ebb6d67798f4af6d (diff) | |
download | aerc-0911cd5050cbbdbc48ba17a586beb7ee055f5867.tar.gz |
Initialize worker in account widget
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r-- | widgets/aerc.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go index 3bd082eb..4351f3ba 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{ |