diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-08-26 15:55:22 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-08-26 15:55:22 -0400 |
| commit | c61e889f209fd07cbff94147df38609de13e3766 (patch) | |
| tree | 0ebc5beb48bacdaab1362f3926a0a1f4081ff8b5 /libdino/src | |
| parent | 2ba1fe874070fc372c1a522c5c5b97173fbe1459 (diff) | |
feat: add launcher badge
Diffstat (limited to 'libdino/src')
| -rw-r--r-- | libdino/src/entity/settings.vala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libdino/src/entity/settings.vala b/libdino/src/entity/settings.vala index 7d0f03c8..1e78c2ba 100644 --- a/libdino/src/entity/settings.vala +++ b/libdino/src/entity/settings.vala @@ -19,6 +19,7 @@ public class Settings : Object { notifications_group_chat_invitations_ = col_to_bool_or_default("notifications_group_chat_invitations", true); notifications_permission_requests_ = col_to_bool_or_default("notifications_permission_requests", true); notifications_connection_errors_ = col_to_bool_or_default("notifications_connection_errors", true); + notifications_badge_ = col_to_bool_or_default("notifications_badge", true); convert_utf8_smileys_ = col_to_bool_or_default("convert_utf8_smileys", true); check_spelling = col_to_bool_or_default("check_spelling", true); avatar_roundness_ = col_to_int_or_default("avatar_roundness", 20).clamp(0, 100); @@ -155,6 +156,18 @@ public class Settings : Object { } } + private bool notifications_badge_; + public bool notifications_badge { + get { return notifications_badge_; } + set { + db.settings.upsert() + .value(db.settings.key, "notifications_badge", true) + .value(db.settings.value, value.to_string()) + .perform(); + notifications_badge_ = value; + } + } + private bool convert_utf8_smileys_; public bool convert_utf8_smileys { get { return convert_utf8_smileys_; } |
