diff options
author | Gabriel Brand <gabr.brand@gmail.com> | 2024-05-03 15:02:22 +0200 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2025-01-02 02:41:43 +0300 |
commit | 987f3d96c087231efb96aefafed688d9944f94ed (patch) | |
tree | 5cedafa585f7403272019180fddf40bda4099b73 /src/application.rs | |
parent | 23c6aa557a68f6907088fcbc0cced3cd191c2824 (diff) | |
download | Furtherance-987f3d96c087231efb96aefafed688d9944f94ed.tar.zst |
Port AdwPreferencesWindow to AdwPreferencesDialog
Diffstat (limited to 'src/application.rs')
-rw-r--r-- | src/application.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/application.rs b/src/application.rs index 8484b91..d03fe97 100644 --- a/src/application.rs +++ b/src/application.rs @@ -25,7 +25,7 @@ use std::sync::Mutex; use crate::config; use crate::database; use crate::settings_manager; -use crate::ui::{FurPreferencesWindow, FurReport, FurtheranceWindow}; +use crate::ui::{FurPreferencesDialog, FurReport, FurtheranceWindow}; mod imp { use super::*; @@ -117,7 +117,8 @@ impl FurtheranceApplication { let preferences_action = gio::SimpleAction::new("preferences", None); preferences_action.connect_activate(clone!(@weak self as app => move |_, _| { - FurPreferencesWindow::new().show(); + let window = FurtheranceWindow::default(); + FurPreferencesDialog::new().present(&window); })); self.set_accels_for_action("app.preferences", &["<primary>comma"]); self.add_action(&preferences_action); |