about summary refs log tree commit diff
path: root/src/application.rs
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2022-06-05 12:37:34 +0300
committerRicky Kresslein <rk@lakoliu.com>2022-06-05 12:42:10 +0300
commit825a2662b1856931549fc2de1164e89b09c7f4aa (patch)
tree4fa17edbd2e366b5046f264e1aabd5220a8ba274 /src/application.rs
parent8d85a8f7a7be6fcb3cb383d6e59f189864b81044 (diff)
downloadFurtherance-825a2662b1856931549fc2de1164e89b09c7f4aa.tar.zst
Reports feature (Issue #32)
Diffstat (limited to 'src/application.rs')
-rwxr-xr-xsrc/application.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/application.rs b/src/application.rs
index ce7a26f..6050af3 100755
--- a/src/application.rs
+++ b/src/application.rs
@@ -23,7 +23,7 @@ use log::debug;
 use std::sync::Mutex;
 
 use crate::config;
-use crate::ui::{FurtheranceWindow, FurPreferencesWindow};
+use crate::ui::{FurtheranceWindow, FurPreferencesWindow, FurReport};
 use crate::database;
 use crate::settings_manager;
 
@@ -111,6 +111,13 @@ impl FurtheranceApplication {
         self.set_accels_for_action("app.preferences", &["<primary>comma"]);
         self.add_action(&preferences_action);
 
+        let report_action = gio::SimpleAction::new("report", None);
+        report_action.connect_activate(clone!(@weak self as app => move |_, _| {
+            FurReport::new().show();
+        }));
+        self.set_accels_for_action("app.report", &["<primary>R"]);
+        self.add_action(&report_action);
+
         let about_action = gio::SimpleAction::new("about", None);
         about_action.connect_activate(clone!(@weak self as app => move |_, _| {
             app.show_about();