Fix account branch in folder tree not being expanded by default

For Cyrus and other servers that puts all user folders under the Inbox,
if the Inbox's special type changes, all children are removed and
re-added. This ensures account paths auto expand whenever any child
is added. This is sub-optimal if a new folder is added and the branch
was manually closed, but that's a corner case.

Fixes #92, see also #11.
This commit is contained in:
Michael Gratton 2018-09-14 23:45:26 +10:00
parent cfc05a1f5b
commit 94809971ee

View file

@ -12,7 +12,7 @@ public class FolderList.AccountBranch : Sidebar.Branch {
public AccountBranch(Geary.Account account) {
base(new Sidebar.Header(account.information.nickname),
Sidebar.Branch.Options.NONE, normal_folder_comparator, special_folder_comparator);
Sidebar.Branch.Options.AUTO_OPEN_ON_NEW_CHILD, normal_folder_comparator, special_folder_comparator);
this.account = account;
user_folder_group = new SpecialGrouping(2, "", "tag-symbolic");