about summary refs log tree commit diff
path: root/src/application.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.rs')
-rw-r--r--src/application.rs5
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);