add runtime settings for notis

This commit is contained in:
ouwou committed 2023-04-05 02:32:07 -04:00
1 parent 02f7bfefe3
commit e9dd1a8ceb
4 files changed
+16 -1

No files matched your search

+4
View File
@@ -68,6 +68,8 @@ void SettingsManager::ReadSettings() {
SMSTR("style", "mentionbadgecolor", MentionBadgeColor);
SMSTR("style", "mentionbadgetextcolor", MentionBadgeTextColor);
SMSTR("style", "unreadcolor", UnreadIndicatorColor);
SMBOOL("notifications", "enabled", NotificationsEnabled);
SMBOOL("notifications", "playsound", NotificationsPlaySound);
#ifdef WITH_KEYCHAIN
keychain::Error error {};
@@ -149,6 +151,8 @@ void SettingsManager::Close() {
SMSTR("style", "mentionbadgecolor", MentionBadgeColor);
SMSTR("style", "mentionbadgetextcolor", MentionBadgeTextColor);
SMSTR("style", "unreadcolor", UnreadIndicatorColor);
SMBOOL("notifications", "enabled", NotificationsEnabled);
SMBOOL("notifications", "playsound", NotificationsPlaySound);
#ifdef WITH_KEYCHAIN
keychain::Error error {};