diff options
author | thierry1970 <thierry@ordissimo.com> | 2021-06-10 14:55:46 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2021-06-13 23:31:21 +0200 |
commit | f4734ab6915c9e6a9b219a3f4bb09dec6d3c2c2d (patch) | |
tree | c27423a761ac9c34a50d6a9e22991fde6b39d8ac | |
parent | 4565f2046b139af0e1525e13f857ec16e55d8426 (diff) | |
download | gnome-contacts-Ordissimo/gnome-contacts-restore-birthday.tar.gz |
editor: Fix the loss of birthday dateOrdissimo/gnome-contacts-restore-birthday
-rw-r--r-- | src/contacts-editor-property.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/contacts-editor-property.vala b/src/contacts-editor-property.vala index 6f38590..4687fbd 100644 --- a/src/contacts-editor-property.vala +++ b/src/contacts-editor-property.vala @@ -556,16 +556,18 @@ public class Contacts.EditorProperty : Gee.ArrayList<EditorPropertyRow> { private EditorPropertyRow create_for_birthday (BirthdayDetails? details) { DateTime date; + Gtk.Button button; if (details.birthday == null) { date = new DateTime.now (); + button = new Gtk.Button.with_label (_("Set Birthday")); } else { date = details.birthday; + button = new Gtk.Button.with_label (details.birthday.to_local ().format ("%x")); } var box = new EditorPropertyRow ("birthday"); box.add_base_label (_("Birthday")); - var button = new Gtk.Button.with_label (_("Set Birthday")); box.container.pack_start (button); button.clicked.connect (() => { |