summaryrefslogtreecommitdiff
path: root/plugins/ZeroNotification/src
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-03 22:21:22 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-03 22:22:56 +0100
commitdb6f3932affcc9397c9fbed99d344388a585add5 (patch)
tree290afac7c446cad078ab71c0042593c8a6e892da /plugins/ZeroNotification/src
parent87d1468cf0dd65d6c27d77984aaf7256a62cbbde (diff)
ZeroNotification: fix eneabling/disabling sound
Diffstat (limited to 'plugins/ZeroNotification/src')
-rw-r--r--plugins/ZeroNotification/src/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/ZeroNotification/src/main.cpp b/plugins/ZeroNotification/src/main.cpp
index d4f6283b28..af2e1c1e42 100644
--- a/plugins/ZeroNotification/src/main.cpp
+++ b/plugins/ZeroNotification/src/main.cpp
@@ -212,10 +212,8 @@ static int OptionsInitialize(WPARAM wParam, LPARAM)
static INT_PTR NoSoundMenuCommand(WPARAM, LPARAM)
{
- if (db_get_b(NULL, "Skin", "UseSound", 1))
- db_set_b(NULL, "Skin", "UseSound", 0);
- // else
- // db_set_b(NULL,"Skin","UseSound",1);
+ bool useSound = db_get_b(0, "Skin", "UseSound", true);
+ db_set_b(0, "Skin", "UseSound", !useSound);
return 0;
}