[gnome-contacts] main-window: fix false title after cancelling selecting



commit 7486fa2d3d27a56a569129bee87b0d499b4429e3
Author: Lorenz Wildberg <lorenz wild-fisch de>
Date:   Wed Apr 14 15:24:34 2021 +0200

    main-window: fix false title after cancelling selecting
    
    When you select more than one contact and than click "Cancel",
    the title in the left headerbar is "1 Selected".
    
    This is very irritating and the title
    should be instead again "Contacts".
    
    The solution is to write "Contacts", when 0 are selected.
    Before it does nothing in this case and the last title remains.
    
    https://gitlab.gnome.org/GNOME/gnome-contacts/-/issues/204

 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 932f7b1f..f8a46d6c 100644
--- a/src/contacts-main-window.vala
+++ b/src/contacts-main-window.vala
@@ -197,6 +197,8 @@ public class Contacts.MainWindow : Hdy.ApplicationWindow {
         if (nr_contacts != 0)
           this.left_header.title = ngettext ("%d Selected", "%d Selected", nr_contacts)
                                        .printf (nr_contacts);
+        else
+          this.left_header.title = _("Contacts");
       });
 
     list_pane_stack.add (list_pane);


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