summaryrefslogtreecommitdiff
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 99ffe19..60bd7fa 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -244,16 +244,12 @@ func (dirlist *DirectoryList) getRUEString(name string) string {
return ""
}
var totalRecent, totalUnseen, totalExists int
- if msgStore.DirInfo.AccurateCounts {
- totalRecent = msgStore.DirInfo.Recent
- totalUnseen = msgStore.DirInfo.Unseen
- totalExists = msgStore.DirInfo.Exists
- } else {
+ if !msgStore.DirInfo.AccurateCounts {
totalRecent, totalUnseen = countRUE(msgStore)
- // use the total count from the dirinfo, else we only count already
- // fetched messages
- totalExists = msgStore.DirInfo.Exists
+ msgStore.DirInfo.Recent = totalRecent
+ msgStore.DirInfo.Unseen = totalUnseen
}
+ totalExists = msgStore.DirInfo.Exists
rueString := ""
if totalRecent > 0 {
rueString = fmt.Sprintf("%d/%d/%d", totalRecent, totalUnseen, totalExists)