From d44bdc9fb99463081fa622589f7432191dd8b30d Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 19 Feb 2020 08:37:20 +0100 Subject: Revert "Only fetch the directory contents when we are switching directories" This reverts commit bd4df530095ee343778a59120a9e641c01010b0f. I did not properly untangle the opening / dirlist update of each other. This interferes with the imap worker, hence the revert --- widgets/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/account.go') diff --git a/widgets/account.go b/widgets/account.go index a83624f..f8b6581 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) -- cgit v1.2.3