diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2023-06-03 15:48:46 +0200 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2023-06-03 15:48:46 +0200 |
commit | 3cbbabd4aa35342b36dce327794149f0c5704508 (patch) | |
tree | 3d128ef166b2aabfedffbc7a7ac7a26c3f854d10 /src/ui/history_box.rs | |
parent | 432362b9c3c028d7525fec0bdfbd3660355ea894 (diff) | |
download | Furtherance-3cbbabd4aa35342b36dce327794149f0c5704508.tar.zst |
#99: Inclusive total time
Diffstat (limited to 'src/ui/history_box.rs')
-rw-r--r-- | src/ui/history_box.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/history_box.rs b/src/ui/history_box.rs index 8590bd0..28ae699 100644 --- a/src/ui/history_box.rs +++ b/src/ui/history_box.rs @@ -133,6 +133,16 @@ impl FurHistoryBox { } } + pub fn set_todays_time(&self, added_time: i32) { + let imp = imp::FurHistoryBox::from_obj(self); + imp.tasks_page.add_to_todays_time(added_time); + } + + pub fn set_todays_stored_secs(&self, new_time: i32) { + let imp = imp::FurHistoryBox::from_obj(self); + imp.tasks_page.set_todays_stored_secs(new_time) + } + pub fn empty_view(&self) { self.set_view(View::Empty); let window = FurtheranceWindow::default(); |