[geary/mjog/folder-list-cleanup: 1/3] client: Ensure inboxes and account branches are expanded by default




commit 01c2501c63752ea53d6257a6419102bed2ab98e4
Author: Michael Gratton <mike vee net>
Date:   Mon Apr 5 14:21:36 2021 +1000

    client: Ensure inboxes and account branches are expanded by default

 src/client/folder-list/folder-list-account-branch.vala | 5 ++++-
 src/client/folder-list/folder-list-inboxes-branch.vala | 7 +++++--
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/client/folder-list/folder-list-account-branch.vala 
b/src/client/folder-list/folder-list-account-branch.vala
index 7b541512a..39299665a 100644
--- a/src/client/folder-list/folder-list-account-branch.vala
+++ b/src/client/folder-list/folder-list-account-branch.vala
@@ -34,7 +34,10 @@ public class FolderList.AccountBranch : Sidebar.Branch {
 
     public AccountBranch(Geary.Account account) {
         base(new Sidebar.Header(account.information.display_name),
-             Sidebar.Branch.Options.NONE, normal_folder_comparator, special_folder_comparator);
+             AUTO_OPEN_ON_NEW_CHILD,
+             normal_folder_comparator,
+             special_folder_comparator
+        );
 
         this.account = account;
         // Translators: The name of the folder group containing
diff --git a/src/client/folder-list/folder-list-inboxes-branch.vala 
b/src/client/folder-list/folder-list-inboxes-branch.vala
index e971f4026..6558064f9 100644
--- a/src/client/folder-list/folder-list-inboxes-branch.vala
+++ b/src/client/folder-list/folder-list-inboxes-branch.vala
@@ -11,8 +11,11 @@ public class FolderList.InboxesBranch : Sidebar.Branch {
         get; private set; default = new Gee.HashMap<Geary.Account, InboxFolderEntry>(); }
 
     public InboxesBranch() {
-        base(new Sidebar.Header(_("Inboxes")),
-            Sidebar.Branch.Options.NONE, inbox_comparator);
+        base(
+            new Sidebar.Header(_("Inboxes")),
+            AUTO_OPEN_ON_NEW_CHILD,
+            inbox_comparator
+        );
     }
 
     private static int inbox_comparator(Sidebar.Entry a, Sidebar.Entry b) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]