diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-07-05 14:48:40 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-10 21:15:12 +0200 |
commit | c2f4404fca15be37228545b1893f5fa335168337 (patch) | |
tree | 2bfc788a7e38510f1d5057c4b47d2460a548cb44 /widgets/dirlist.go | |
parent | ccd042889f6d8aa78b70c01395ef69aec48ac48c (diff) | |
download | aerc-c2f4404fca15be37228545b1893f5fa335168337.tar.gz |
threading: enable filtering of server-side threads
This patch enables the filtering of a threaded view which uses
server-built threads. Filtering is done server-side, in order to
preserve the use of server-built threads.
In adding this feature, the filtering of notmuch folders was brought up
to feature parity with the other workers. The filters function the same
(ie: they can be stacked). The notmuch filters, however, still use
notmuch syntax for the filtering.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r-- | widgets/dirlist.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go index ad5f048c..5c3416c7 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -191,7 +191,11 @@ func (dirlist *DirectoryList) Select(name string) { } dirlist.sortDirsByFoldersSortConfig() if newStore { - dirlist.worker.PostAction(&types.FetchDirectoryContents{}, nil) + store, ok := dirlist.MsgStore(name) + if ok { + // Fetch directory contents via store.Sort + store.Sort(nil, nil) + } } } dirlist.Invalidate() |