[gnome-contacts] contacts-main-window: deleting a contact now removes their name from the headerbar



commit 3fe2e27a9edc181ff7ee1911223451b572fbde64
Author: Eric Daigle <daigle e outlook com>
Date:   Tue Feb 9 15:18:40 2021 -0500

    contacts-main-window: deleting a contact now removes their name from the headerbar
    
    As described in #128, deleting a contact causes that contact's name to stay
    in the headerbar until another contact is selected.
    
    To fix this, make set_shown_contact(null) set the right header title
    to an empty string, clearing the headerbar when a contact is deleted.
    
    Closes #128

 src/contacts-main-window.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/contacts-main-window.vala b/src/contacts-main-window.vala
index bfd38ff8..d79c39fd 100644
--- a/src/contacts-main-window.vala
+++ b/src/contacts-main-window.vala
@@ -366,6 +366,8 @@ public class Contacts.MainWindow : Hdy.ApplicationWindow {
       this.favorite_button.tooltip_text = (i.is_favourite)? _("Unmark as favorite")
                                                                      : _("Mark as favorite");
       this.right_header.title = i.display_name;
+    } else {
+      this.right_header.title = "";
     }
   }
 


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