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:
parent
01c96e78df
commit
583b129c94
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue