summaryrefslogtreecommitdiff
path: root/plugins/supereq
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-07 20:45:40 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-07 20:45:40 +0200
commit018dac7318c89c0751744f026166318d078f4b8d (patch)
tree08d02bfde10fc77d6f4be0a08e7cf9b4a845af6c /plugins/supereq
parent13deff0676e5cd1a9585bacdec3b42753e69403a (diff)
eq gui WIP
Diffstat (limited to 'plugins/supereq')
-rw-r--r--plugins/supereq/supereq.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/supereq/supereq.c b/plugins/supereq/supereq.c
index 6184a307..972c1798 100644
--- a/plugins/supereq/supereq.c
+++ b/plugins/supereq/supereq.c
@@ -192,12 +192,13 @@ supereq_reset (void) {
void
supereq_enable (int e) {
- deadbeef->conf_set_int ("supereq.enable", e);
-
- if (e && !enabled) {
- supereq_reset ();
+ if (e != enabled) {
+ deadbeef->conf_set_int ("supereq.enable", e);
+ if (e && !enabled) {
+ supereq_reset ();
+ }
+ enabled = e;
}
- enabled = e;
}
int