[gnote] Fix insert timestamp



commit 993a61025ba75e5b96f83100a78eea3cf2cf98b7
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Thu Dec 31 15:32:47 2020 +0200

    Fix insert timestamp

 src/addins/inserttimestamp/inserttimestamppreferences.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/addins/inserttimestamp/inserttimestamppreferences.cpp 
b/src/addins/inserttimestamp/inserttimestamppreferences.cpp
index 76a709f9..a19e0a06 100644
--- a/src/addins/inserttimestamp/inserttimestamppreferences.cpp
+++ b/src/addins/inserttimestamp/inserttimestamppreferences.cpp
@@ -117,7 +117,10 @@ namespace inserttimestamp {
     custom_entry = manage(new Gtk::Entry());
     customBox->attach(*custom_entry, 1, 0, 1, 1);
 
-    sharp::PropertyEditor *entryEditor = new sharp::PropertyEditor(ts_settings, INSERT_TIMESTAMP_FORMAT, 
*custom_entry);
+    sharp::PropertyEditor *entryEditor = new sharp::PropertyEditor(
+      [ts_settings]()->Glib::ustring { return ts_settings->get_string(INSERT_TIMESTAMP_FORMAT); },
+      [ts_settings](const Glib::ustring & value) { ts_settings->set_string(INSERT_TIMESTAMP_FORMAT, value); 
},
+      *custom_entry);
     entryEditor->setup ();
 
     // Activate/deactivate widgets


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