summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-04-05 02:32:07 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-04-05 02:32:07 -0400
commite9dd1a8cebd4d870af0a6432edb10ec29244199b (patch)
treeb7f77b338a0968214d5636ecaaa16b8e6c8fd1c2 /src/settings.cpp
parent02f7bfefe3185a38f8935b31c68857b986d709ac (diff)
downloadabaddon-portaudio-e9dd1a8cebd4d870af0a6432edb10ec29244199b.tar.gz
abaddon-portaudio-e9dd1a8cebd4d870af0a6432edb10ec29244199b.zip
add runtime settings for notis
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index c1a2fd2..82401f5 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -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 {};