components: ensure correct initial state for headerbars buttons

fixes: https://gitlab.gnome.org/GNOME/geary/-/issues/1112
This commit is contained in:
Julian Sparber 2021-01-12 12:40:56 +01:00
parent 85ea2e78f3
commit a1a31734c4

View file

@ -56,6 +56,7 @@ public class Components.ConversationHeaderBar : Gtk.HeaderBar {
reply_forward_buttons = actions.reply_forward_buttons;
archive_trash_delete_buttons = actions.archive_trash_delete_buttons;
action_bar.reveal_child = get_allocated_width() > 600;
update_action_bar();
this.owner_notify = actions.notify["owner"].connect(() => {
if (actions.owner != this) {