From 583b129c9470a060d17c952b46dbe1bffc4c0c49 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Fri, 28 Feb 2020 23:45:25 +0000 Subject: Don't set the store on an update to it Updates to a store can be asynchronous so we shouldn't select it just because it had an update. Selection of the stores should be driven by explicit user commands. --- widgets/account.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'widgets') diff --git a/widgets/account.go b/widgets/account.go index f8b6581..8f94e92 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -252,10 +252,6 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { } }) acct.dirlist.SetMsgStore(msg.Info.Name, store) - store.OnUpdate(func(_ *lib.MessageStore) { - store.OnUpdate(nil) - acct.msglist.SetStore(store) - }) } case *types.DirectoryContents: if store, ok := acct.dirlist.SelectedMsgStore(); ok { -- cgit 1.4.1-2-gfad0