diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-04-11 04:36:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 04:36:27 +0000 |
commit | 44ab35dfd591c4c357673cc2ce3cb3a6964a1fff (patch) | |
tree | 91a60f1dfdd9d5a7e1c88b0eef0990981a307ada /src/settings.cpp | |
parent | 0b663246809519487c155c51ccebb8df0e14a227 (diff) | |
parent | f5228d91d28e39d56c7245ecf0128895273c9ec0 (diff) | |
download | abaddon-portaudio-44ab35dfd591c4c357673cc2ce3cb3a6964a1fff.tar.gz abaddon-portaudio-44ab35dfd591c4c357673cc2ce3cb3a6964a1fff.zip |
Merge pull request #145 from uowuo/notifications
Notifications
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 {}; |