diff options
Diffstat (limited to 'main/src/windows/preferences_window')
| -rw-r--r-- | main/src/windows/preferences_window/general_preferences_page.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/windows/preferences_window/general_preferences_page.vala b/main/src/windows/preferences_window/general_preferences_page.vala index 81906643..733de889 100644 --- a/main/src/windows/preferences_window/general_preferences_page.vala +++ b/main/src/windows/preferences_window/general_preferences_page.vala @@ -11,6 +11,7 @@ public class Dino.Ui.ViewModel.GeneralPreferencesPage : Object { public bool notifications_group_chat_invitations { get; set; } public bool notifications_permission_requests { get; set; } public bool notifications_connection_errors { get; set; } + public bool notifications_badge { get; set; } public bool convert_emojis { get; set; } } @@ -26,6 +27,7 @@ public class Dino.Ui.GeneralPreferencesPage : Adw.PreferencesPage { [GtkChild] private unowned Adw.SwitchRow notification_group_chat_invitations_row; [GtkChild] private unowned Adw.SwitchRow notification_permission_requests_row; [GtkChild] private unowned Adw.SwitchRow notification_connection_errors_row; + [GtkChild] private unowned Adw.SwitchRow notification_badge_row; [GtkChild] private unowned Adw.SwitchRow emoji_row; public ViewModel.GeneralPreferencesPage model { get; set; default = new ViewModel.GeneralPreferencesPage(); } @@ -51,6 +53,7 @@ public class Dino.Ui.GeneralPreferencesPage : Adw.PreferencesPage { model.bind_property("notifications-group-chat-invitations", notification_group_chat_invitations_row, "active", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL), model.bind_property("notifications-permission-requests", notification_permission_requests_row, "active", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL), model.bind_property("notifications-connection-errors", notification_connection_errors_row, "active", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL), + model.bind_property("notifications-badge", notification_badge_row, "active", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL), model.bind_property("convert-emojis", emoji_row, "active", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL) }; } else { |
