summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-07-05 14:48:35 -0500
committerRobin Jarry <robin@jarry.cc>2022-07-10 21:15:12 +0200
commit399854c103279da092538820d0b9889769b007c6 (patch)
treebe44cec93f4565efcf5a6006f78c2ea116ff7e3d
parentd7feb56cbe7b81160b580ec2f5dcaef78c7a2230 (diff)
downloadaerc-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.go2
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 {