diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-04-05 02:32:07 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-04-05 02:32:07 -0400 |
commit | e9dd1a8cebd4d870af0a6432edb10ec29244199b (patch) | |
tree | b7f77b338a0968214d5636ecaaa16b8e6c8fd1c2 /src/settings.cpp | |
parent | 02f7bfefe3185a38f8935b31c68857b986d709ac (diff) | |
download | abaddon-portaudio-e9dd1a8cebd4d870af0a6432edb10ec29244199b.tar.gz abaddon-portaudio-e9dd1a8cebd4d870af0a6432edb10ec29244199b.zip |
add runtime settings for notis
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 4 |
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 {}; |