Reset message list cursor when switching stores
This commit is contained in:
parent
13032734cd
commit
f9251c2344
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue