diff options
author | r3pll <106473215+r3pll@users.noreply.github.com> | 2022-06-07 14:14:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 14:14:59 +0300 |
commit | 02c76729565c06cfeaa0b1029bc9768cd3b46d7d (patch) | |
tree | 3642cd2c2da187250ef4708061d81208e57740b5 /src/application.rs | |
parent | 08a3a2416e6b5357911815d49e074928dcc5d3e6 (diff) | |
parent | 89955b21d2a048037822afb60f5200f9da76c487 (diff) | |
download | Furtherance-02c76729565c06cfeaa0b1029bc9768cd3b46d7d.tar.zst |
Merge pull request #1 from lakoliu/main
1
Diffstat (limited to 'src/application.rs')
-rwxr-xr-x | src/application.rs | 9 |
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(); |