diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-03-17 10:34:40 +0100 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-03-17 10:34:40 +0100 |
commit | 72fff20922590e1b5cc5f15bff6e1ba4c7934812 (patch) | |
tree | a6e6f1cbd02a31bfc2a9a2f8e23eaff817ea2e7f /src/ui/window.rs | |
parent | 917748d474e98c945ac0ef0347bc4dc3925b89c3 (diff) | |
download | Furtherance-72fff20922590e1b5cc5f15bff6e1ba4c7934812.tar.zst |
Right-clicking a task starts timer for that task
Diffstat (limited to 'src/ui/window.rs')
-rwxr-xr-x | src/ui/window.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/window.rs b/src/ui/window.rs index 277daa5..36c20c1 100755 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -327,6 +327,16 @@ impl FurtheranceWindow { let imp = imp::FurtheranceWindow::from_instance(self); *imp.subtract_idle.lock().unwrap() = val; } + + pub fn set_task_input_text(&self, text: String) { + let imp = imp::FurtheranceWindow::from_instance(self); + imp.task_input.set_text(&text); + } + + pub fn start_timer(&self) { + let imp = imp::FurtheranceWindow::from_instance(self); + imp.start_button.emit_clicked(); + } } impl Default for FurtheranceWindow { |