diff options
| author | fiaxh <git@lightrise.org> | 2025-10-06 18:17:17 +0200 |
|---|---|---|
| committer | fiaxh <git@lightrise.org> | 2025-10-06 18:17:17 +0200 |
| commit | f17926329915fcd8f95e00ab042d1a22ea2b7371 (patch) | |
| tree | 3e740e85246e097b9f1a767b24a450f772af44d1 /main/src/windows/preferences_window/accounts_preferences_page.vala | |
| parent | 18f87d11986f1021d98f1be58c89296d852120c3 (diff) | |
Use AdwDialog for conversation details and preferences
Diffstat (limited to 'main/src/windows/preferences_window/accounts_preferences_page.vala')
| -rw-r--r-- | main/src/windows/preferences_window/accounts_preferences_page.vala | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
