about summary refs log tree commit diff
path: root/src/ui/task_row.rs
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2022-04-06 19:08:21 +0200
committerRicky Kresslein <rk@lakoliu.com>2022-04-06 19:08:21 +0200
commit348146370674616aeda897b127abf7e2614509b8 (patch)
treebbe5196e725c205fa4ca8eab9e3e7203fee0afa6 /src/ui/task_row.rs
parentb800d7eb90dac1a17b22e0401c985e0546179164 (diff)
downloadFurtherance-348146370674616aeda897b127abf7e2614509b8.tar.zst
Fix Bugs #13 & #14 - Right-click does nothing if clock is already running
Diffstat (limited to 'src/ui/task_row.rs')
-rwxr-xr-xsrc/ui/task_row.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/task_row.rs b/src/ui/task_row.rs
index 80d6795..f55aba4 100755
--- a/src/ui/task_row.rs
+++ b/src/ui/task_row.rs
@@ -109,8 +109,7 @@ impl FurTaskRow {
         gesture.connect_pressed(clone!(@strong task_name_text => move |gesture, _, _, _| {
             gesture.set_state(gtk::EventSequenceState::Claimed);
             let window = FurtheranceWindow::default();
-            window.set_task_input_text(task_name_text.to_string());
-            window.start_timer();
+            window.duplicate_task(task_name_text.to_string());
         }));
 
         self.add_controller(&gesture);