Commit 3f6a8581 authored by Michael Gratton's avatar Michael Gratton 🍸 Committed by Michael Gratton
Browse files

client: Ensure inboxes, account and label branches are expanded by default

parent 68f860a7
......@@ -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);
STARTUP_OPEN_GROUPING | STARTUP_EXPAND_TO_FIRST_CHILD,
normal_folder_comparator,
special_folder_comparator
);
this.account = account;
// Translators: The name of the folder group containing
......
......@@ -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")),
STARTUP_OPEN_GROUPING,
inbox_comparator
);
}
private static int inbox_comparator(Sidebar.Entry a, Sidebar.Entry b) {
......
......@@ -641,8 +641,9 @@ public class Sidebar.Tree : Gtk.TreeView {
associate_entry(insertion_iter, entry);
associate_children(branch, entry, insertion_iter);
if (branch.is_auto_open_on_new_child())
if (branch.is_auto_open_on_new_child() || parent is Grouping) {
expand_to_entry(entry);
}
}
private void on_branch_entry_removed(Sidebar.Branch branch, Sidebar.Entry entry) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment