summaryrefslogtreecommitdiff
path: root/plugins/supereq
diff options
context:
space:
mode:
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