[gnome-contacts/nielsdg/show-contact-pane: 2/2] main-window: Show contact pane when selecting contact




commit ca383a459e87b53578da59fff2248947f2535d75
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun Jul 24 15:33:51 2022 +0200

    main-window: Show contact pane when selecting contact
    
    Make sure we actually show the contact pane when we select a contact,
    also when we have a folded leaflet.
    
    Fixes: https://gitlab.gnome.org/GNOME/gnome-contacts/-/issues/258

 src/contacts-main-window.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/contacts-main-window.vala b/src/contacts-main-window.vala
index a2fdffb7..e395d7e1 100644
--- a/src/contacts-main-window.vala
+++ b/src/contacts-main-window.vala
@@ -433,6 +433,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow {
         activate_action ("stop-editing-contact", new Variant.boolean (false));
 
       this.contact_pane.show_contact (selected);
+      show_contact_pane ();
 
       // clearing right_header
       this.right_header.title_widget = new Adw.WindowTitle ("", "");
@@ -462,6 +463,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow {
     this.contacts_list.set_contacts_visible (selection, false);
     this.contact_pane.show_contact (null);
     this.state = UiState.NORMAL;
+    show_list_pane ();
 
     // Build the list of contacts
     var list = bitset_to_individuals (this.marked_contacts,
@@ -493,6 +495,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow {
     this.contacts_list.set_contacts_visible (selection, false);
     this.contact_pane.show_contact (null);
     this.state = UiState.NORMAL;
+    show_list_pane ();
 
     var individuals = bitset_to_individuals (this.store.filter_model,
                                              selection);


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