Reset message list cursor when switching stores

This commit is contained in:
Drew DeVault 2019-05-19 18:09:16 -04:00
parent 13032734cd
commit f9251c2344
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ func (ml *MessageList) storeUpdate(store *lib.MessageStore) {
} }
func (ml *MessageList) SetStore(store *lib.MessageStore) { func (ml *MessageList) SetStore(store *lib.MessageStore) {
if ml.Store() == store { if ml.Store() != store {
ml.scroll = 0 ml.scroll = 0
ml.selected = 0 ml.selected = 0
} }