about summary refs log tree commit diff
path: root/src/application.rs
diff options
context:
space:
mode:
authorFelix Zwettler <f.zwettler@posteo.de>2022-06-07 23:14:29 +0200
committerFelix Zwettler <f.zwettler@posteo.de>2022-06-07 23:34:00 +0200
commita510603825050a5face70d5387f0be830a4d685b (patch)
treeaac28a23249c1d483da25304a9e75c925bda68f5 /src/application.rs
parent67679138574b083d838294bf82b6058a54b6a13d (diff)
downloadFurtherance-a510603825050a5face70d5387f0be830a4d685b.tar.zst
add csv export
Diffstat (limited to 'src/application.rs')
-rwxr-xr-xsrc/application.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/application.rs b/src/application.rs
index ad6ee51..fdc3637 100755
--- a/src/application.rs
+++ b/src/application.rs
@@ -156,6 +156,13 @@ impl FurtheranceApplication {
             imp.pomodoro_dialog.lock().unwrap().response(gtk::ResponseType::Reject);
         }));
         self.add_action(&stop_pomodoro_action);
+
+        let export_csv_action = gio::SimpleAction::new("export-csv", None);
+        export_csv_action.connect_activate(clone!(@weak self as app => move |_, _| {
+            let window = FurtheranceWindow::default();
+            window.open_csv_export_dialog();
+        }));
+        self.add_action(&export_csv_action);
     }
 
     fn setup_application(&self) {