[gnome-contacts] contacts-main-window: deleting a contact now removes their name from the headerbar
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] contacts-main-window: deleting a contact now removes their name from the headerbar
- Date: Sat, 13 Feb 2021 10:01:11 +0000 (UTC)
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]