]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
While dragging a slider re-enable the Apply button if the slider value is changed...
authorterencehill <piuntn@gmail.com>
Mon, 4 Jan 2016 13:57:43 +0000 (14:57 +0100)
committerGitLab <gitlab@gitlab.com>
Thu, 28 Jan 2016 20:16:18 +0000 (20:16 +0000)
qcsrc/menu/item/slider.qc

index acadb68d9fdf726ccfae14cd97d958e1543958ed..dcfe68a75ff718c929c0babfcbc0a38c79503f48 100644 (file)
                                if (me.valueStep) v = floor(0.5 + v / me.valueStep) * me.valueStep;
                                me.setValue_noAnim(me, v);
                                if(me.applyButton)
-                                       me.applyButton.disabled = (me.previousValue == me.value);
+                               if(me.previousValue != me.value)
+                                       me.applyButton.disabled = false;
                        }
                        else
                        {
                                me.setValue(me, me.previousValue);
-                               if(me.applyButton)
-                                       me.applyButton.disabled = true;
                        }
                }