about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xCargo.lock2
-rw-r--r--po/sk.po2
-rwxr-xr-xsrc/ui/task_details.rs5
3 files changed, 7 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 927ec1f..7a22dd9 100755
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -211,7 +211,7 @@ dependencies = [
 
 [[package]]
 name = "furtherance"
-version = "1.1.1"
+version = "1.1.2"
 dependencies = [
  "chrono",
  "dbus",
diff --git a/po/sk.po b/po/sk.po
index d6b0d5e..f6afc6b 100644
--- a/po/sk.po
+++ b/po/sk.po
@@ -55,7 +55,7 @@ msgstr "Preklady do holandčiny, brazílskej portugalčiny a francúzštiny"
 
 #: data/com.lakoliu.Furtherance.appdata.xml.in:57
 msgid "Furtherance has a new icon! And lots of bug fixes and improvements."
-msgstr ""Podpora má novú ikonu! A veľa opráv chýb a vylepšení."
+msgstr "Podpora má novú ikonu! A veľa opráv chýb a vylepšení."
 
 #: data/com.lakoliu.Furtherance.appdata.xml.in:66
 msgid "First stable release of Furtherance."
diff --git a/src/ui/task_details.rs b/src/ui/task_details.rs
index 47ea369..be75206 100755
--- a/src/ui/task_details.rs
+++ b/src/ui/task_details.rs
@@ -54,6 +54,7 @@ mod imp {
         pub all_boxes: RefCell<Vec<gtk::Box>>,
         pub all_task_ids: RefCell<Vec<i32>>,
         pub this_day: RefCell<String>,
+        pub orig_tags: RefCell<String>,
     }
 
     #[glib::object_subclass]
@@ -111,6 +112,7 @@ impl FurTaskDetails {
         imp.task_name_label.set_text(&task_group[0].task_name);
         let this_day_str = DateTime::parse_from_rfc3339(&task_group[0].start_time).unwrap();
         *imp.this_day.borrow_mut() = this_day_str.format("%h %d %Y").to_string();
+        *imp.orig_tags.borrow_mut() = task_group[0].task_name.clone();
 
         for task in task_group.clone() {
             imp.all_task_ids.borrow_mut().push(task.id);
@@ -441,6 +443,9 @@ impl FurTaskDetails {
             };
             delete
         });
+        // TODO Need to check if all task names and tags also match the original
+        // and remove those that don't.
+
         imp.all_task_ids.borrow_mut().clear();
         let window = FurtheranceWindow::default();
         window.reset_history_box();