about summary refs log tree commit diff
path: root/src/application.rs
diff options
context:
space:
mode:
authorlakoliu <99976966+lakoliu@users.noreply.github.com>2022-06-08 14:14:25 +0300
committerGitHub <noreply@github.com>2022-06-08 14:14:25 +0300
commit86e3a116a3097ec410ac1c708a2442987bd7dfec (patch)
treec93114d28df5adb632c43ef19d4a4245b0ceb9ff /src/application.rs
parent67679138574b083d838294bf82b6058a54b6a13d (diff)
parenta83f433c97b7818b6101ecdbe2d23ee4edb8dc4e (diff)
downloadFurtherance-86e3a116a3097ec410ac1c708a2442987bd7dfec.tar.zst
Merge pull request #64 from flxzt/export_csv
feat: 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) {