aboutsummaryrefslogtreecommitdiff
path: root/main/src/windows/preferences_window/general_preferences_page.vala
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-08-26 15:55:22 -0400
committerfrosty <gabriel@bwaaa.monster>2026-08-26 15:55:22 -0400
commitc61e889f209fd07cbff94147df38609de13e3766 (patch)
tree0ebc5beb48bacdaab1362f3926a0a1f4081ff8b5 /main/src/windows/preferences_window/general_preferences_page.vala
parent2ba1fe874070fc372c1a522c5c5b97173fbe1459 (diff)
feat: add launcher badge
Diffstat (limited to 'main/src/windows/preferences_window/general_preferences_page.vala')
-rw-r--r--main/src/windows/preferences_window/general_preferences_page.vala3
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 {