From 399854c103279da092538820d0b9889769b007c6 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 5 Jul 2022 14:48:35 -0500 Subject: [PATCH] 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 Acked-by: Robin Jarry --- widgets/account.go | 2 ++ 1 file changed, 2 insertions(+) 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 {