From a510603825050a5face70d5387f0be830a4d685b Mon Sep 17 00:00:00 2001 From: Felix Zwettler Date: Tue, 7 Jun 2022 23:14:29 +0200 Subject: add csv export --- src/application.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/application.rs') 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) { -- cgit 1.4.1