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.
This commit is contained in:
Jeffas 2020-02-28 23:45:25 +00:00 committed by Drew DeVault
parent 01c96e78df
commit 583b129c94

View file

@ -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 {