From c2e3648baca0756cb4f9fd5ada5ab312d0909dc2 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sun, 24 Apr 2022 10:51:10 +0300 Subject: Fix double quotation in SK translation --- src/ui/task_details.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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>, pub all_task_ids: RefCell>, pub this_day: RefCell, + pub orig_tags: RefCell, } #[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(); -- cgit 1.4.1