threading: enable toggle-threads for server-side threads
Enable the :toggle-threads command to work for workers which have Thread capability. The implementation of that feature has the side effect that the threading-enabled config option now sets the default view (threaded or not threaded) for any worker, not just IMAP or notmuch. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
f0c76fad72
commit
3a614e45fc
5 changed files with 28 additions and 31 deletions
commands/msg
|
@ -35,8 +35,8 @@ func (ToggleThreads) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
return err
|
||||
}
|
||||
defer store.Reselect(store.Selected())
|
||||
store.SetBuildThreads(!store.BuildThreads())
|
||||
acct.SetStatus(statusline.Threading(store.BuildThreads()))
|
||||
store.SetThreadedView(!store.ThreadedView())
|
||||
acct.SetStatus(statusline.Threading(store.ThreadedView()))
|
||||
acct.Messages().Invalidate()
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue