diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/account.go | 2 | ||||
-rw-r--r-- | widgets/dirlist.go | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/widgets/account.go b/widgets/account.go index a83624fe..f8b6581f 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -242,6 +242,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { store.Update(msg) } else { store = lib.NewMessageStore(acct.worker, msg.Info, + acct.getSortCriteria(), func(msg *models.MessageInfo) { acct.conf.Triggers.ExecNewEmail(acct.acct, acct.conf, msg) @@ -256,7 +257,6 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { acct.msglist.SetStore(store) }) } - acct.dirlist.Invalidate() case *types.DirectoryContents: if store, ok := acct.dirlist.SelectedMsgStore(); ok { store.Update(msg) diff --git a/widgets/dirlist.go b/widgets/dirlist.go index 81a97cc5..70263a90 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -11,7 +11,6 @@ import ( "git.sr.ht/~sircmpwn/aerc/config" "git.sr.ht/~sircmpwn/aerc/lib" - libsort "git.sr.ht/~sircmpwn/aerc/lib/sort" "git.sr.ht/~sircmpwn/aerc/lib/ui" "git.sr.ht/~sircmpwn/aerc/models" "git.sr.ht/~sircmpwn/aerc/worker/types" @@ -105,10 +104,6 @@ func (dirlist *DirectoryList) Select(name string) { } sort.Strings(dirlist.dirs) dirlist.sortDirsByFoldersSortConfig() - // once opened, we need to enumerate the contents - dirlist.worker.PostAction(&types.FetchDirectoryContents{ - SortCriteria: dirlist.getSortCriteria(), - }, nil) } dirlist.Invalidate() }) |