diff options
| author | Marvin W <git@larma.de> | 2026-04-08 10:47:39 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-04-08 19:02:44 +0200 |
| commit | 260754d2f95a5bc03f1c4d21cd4da9519eeb2f92 (patch) | |
| tree | 11688b10a62ee7b855bc6cde592e10297bdf64af /main/src/windows/preferences_window/preferences_dialog.vala | |
| parent | 64757cbe2572259ad201f4c691aeb545088ae42a (diff) | |
Fix account preferences widget leaks
Diffstat (limited to 'main/src/windows/preferences_window/preferences_dialog.vala')
| -rw-r--r-- | main/src/windows/preferences_window/preferences_dialog.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/windows/preferences_window/preferences_dialog.vala b/main/src/windows/preferences_window/preferences_dialog.vala index 7a70ca00..4baced96 100644 --- a/main/src/windows/preferences_window/preferences_dialog.vala +++ b/main/src/windows/preferences_window/preferences_dialog.vala @@ -10,17 +10,17 @@ public class Dino.Ui.PreferencesDialog : Adw.PreferencesDialog { [GtkChild] public unowned Dino.Ui.PreferencesWindowAccounts accounts_page; [GtkChild] public unowned Dino.Ui.PreferencesWindowEncryption encryption_page; [GtkChild] public unowned Dino.Ui.GeneralPreferencesPage general_page; - public Dino.Ui.AccountPreferencesSubpage account_page = new Dino.Ui.AccountPreferencesSubpage(); [GtkChild] public unowned ViewModel.PreferencesDialog model { get; } construct { this.bind_property("model", accounts_page, "model", BindingFlags.SYNC_CREATE); - this.bind_property("model", account_page, "model", BindingFlags.SYNC_CREATE); this.bind_property("model", encryption_page, "model", BindingFlags.SYNC_CREATE); accounts_page.account_chosen.connect((account) => { model.selected_account = model.account_details[account]; + Dino.Ui.AccountPreferencesSubpage account_page = new Dino.Ui.AccountPreferencesSubpage(); + this.bind_property("model", account_page, "model", BindingFlags.SYNC_CREATE); this.push_subpage(account_page); }); } |
