From 987f3d96c087231efb96aefafed688d9944f94ed Mon Sep 17 00:00:00 2001 From: Gabriel Brand Date: Fri, 3 May 2024 15:02:22 +0200 Subject: Port AdwPreferencesWindow to AdwPreferencesDialog --- src/application.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/application.rs') 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", &["comma"]); self.add_action(&preferences_action); -- cgit 1.4.1