Closes #7484 Closes #7320 For drafts & outbox, use email total instead of unread count on folder list badge

This commit is contained in:
Eric Gregory 2013-09-26 17:51:38 -07:00
parent 7661af6a11
commit b2ca184f40

View file

@ -119,6 +119,10 @@ public class FolderList.FolderEntry : FolderList.AbstractFolderEntry, Sidebar.In
}
public override int get_count() {
return folder.properties.email_unread;
if (folder.special_folder_type == Geary.SpecialFolderType.DRAFTS ||
folder.special_folder_type == Geary.SpecialFolderType.OUTBOX)
return folder.properties.email_total;
else
return folder.properties.email_unread;
}
}