about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2022-04-24 10:51:10 +0300
committerRicky Kresslein <rk@lakoliu.com>2022-04-24 11:06:59 +0300
commitc2e3648baca0756cb4f9fd5ada5ab312d0909dc2 (patch)
tree28e693fb6ec00e8764bbe79afd1fcd40dfbb1255 /src
parent351e9f06dd651a9625b4b9545277fae76b1eee5d (diff)
downloadFurtherance-c2e3648baca0756cb4f9fd5ada5ab312d0909dc2.tar.zst
Fix double quotation in SK translation
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ui/task_details.rs5
1 files changed, 5 insertions, 0 deletions
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();