diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-07-05 14:48:35 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-10 21:15:12 +0200 |
commit | 399854c103279da092538820d0b9889769b007c6 (patch) | |
tree | be44cec93f4565efcf5a6006f78c2ea116ff7e3d | |
parent | d7feb56cbe7b81160b580ec2f5dcaef78c7a2230 (diff) | |
download | aerc-399854c103279da092538820d0b9889769b007c6.zip |
statusline: show threading status if threading-enabled=true
Update statusline to display threading status at startup. Previously,
the threading status would only display from a :toggle-threads command.
Users who had the config option threading-enabled would not see the
status, as a result.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | widgets/account.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go index 55e76be..4fe6df7 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -311,6 +311,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { acct.msglist.SetStore(store) } store.Update(msg) + acct.SetStatus(statusline.Threading(store.ThreadedView())) } case *types.DirectoryThreaded: if store, ok := acct.dirlist.SelectedMsgStore(); ok { @@ -318,6 +319,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { acct.msglist.SetStore(store) } store.Update(msg) + acct.SetStatus(statusline.Threading(store.ThreadedView())) } case *types.FullMessage: if store, ok := acct.dirlist.SelectedMsgStore(); ok { |