Closes #7484 Closes #7320 For drafts & outbox, use email total instead of unread count on folder list badge
This commit is contained in:
parent
7661af6a11
commit
b2ca184f40
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue