From: terencehill Date: Mon, 4 Jan 2016 13:26:19 +0000 (+0100) Subject: While dragging a slider re-enable the Apply button if the slider value is changed... X-Git-Tag: xonotic-v0.8.2~1213^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1451b334cefc1bb919c03d1234ab903921e9d36;p=xonotic%2Fxonotic-data.pk3dir.git While dragging a slider re-enable the Apply button if the slider value is changed, re-disable it otherwise --- diff --git a/qcsrc/menu/item/slider.qc b/qcsrc/menu/item/slider.qc index 4525af16a..acadb68d9 100644 --- a/qcsrc/menu/item/slider.qc +++ b/qcsrc/menu/item/slider.qc @@ -207,11 +207,13 @@ if (me.valueStep) v = floor(0.5 + v / me.valueStep) * me.valueStep; me.setValue_noAnim(me, v); if(me.applyButton) - me.applyButton.disabled = false; + me.applyButton.disabled = (me.previousValue == me.value); } else { me.setValue(me, me.previousValue); + if(me.applyButton) + me.applyButton.disabled = true; } }