From f17926329915fcd8f95e00ab042d1a22ea2b7371 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 6 Oct 2025 18:17:17 +0200 Subject: Use AdwDialog for conversation details and preferences --- main/src/windows/preferences_window/accounts_preferences_page.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main/src/windows/preferences_window/accounts_preferences_page.vala') diff --git a/main/src/windows/preferences_window/accounts_preferences_page.vala b/main/src/windows/preferences_window/accounts_preferences_page.vala index 7f4c2f1b..2fe05088 100644 --- a/main/src/windows/preferences_window/accounts_preferences_page.vala +++ b/main/src/windows/preferences_window/accounts_preferences_page.vala @@ -9,7 +9,7 @@ public class Dino.Ui.PreferencesWindowAccounts : Adw.PreferencesPage { public Adw.PreferencesGroup active_accounts; public Adw.PreferencesGroup disabled_accounts; - public ViewModel.PreferencesWindow model { get; set; } + public ViewModel.PreferencesDialog model { get; set; } construct { this.title = _("Accounts"); @@ -36,11 +36,10 @@ public class Dino.Ui.PreferencesWindowAccounts : Adw.PreferencesPage { add_account_button.clicked.connect(() => { Ui.ManageAccounts.AddAccountDialog add_account_dialog = new Ui.ManageAccounts.AddAccountDialog(model.stream_interactor, model.db); - add_account_dialog.set_transient_for((Window)this.get_root()); add_account_dialog.added.connect((account) => { refresh(); }); - add_account_dialog.present(); + add_account_dialog.present((Window)this.get_root()); }); disabled_accounts.visible = false; // Only display disabled section if it contains accounts -- cgit v1.3