aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index f4cea709..5eee7ed4 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -367,6 +367,12 @@ func (ml *MessageList) SetStore(store *lib.MessageStore) {
ml.spinner.Stop()
ml.nmsgs = len(store.Uids())
store.OnUpdate(ml.storeUpdate)
+ store.OnFilterChange(func(store *lib.MessageStore) {
+ if ml.Store() != store {
+ return
+ }
+ ml.nmsgs = len(store.Uids())
+ })
} else {
ml.spinner.Start()
}