]> git.rm.cloudns.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:26:19 +0000 (14:26 +0100)
committerGitLab <gitlab@gitlab.com>
Thu, 28 Jan 2016 20:16:18 +0000 (20:16 +0000)
qcsrc/menu/item/slider.qc

index 4525af16a859c44cc2bd12080c1d91862bb32491..acadb68d9fdf726ccfae14cd97d958e1543958ed 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 = false;
+                                       me.applyButton.disabled = (me.previousValue == me.value);
                        }
                        else
                        {
                                me.setValue(me, me.previousValue);
+                               if(me.applyButton)
+                                       me.applyButton.disabled = true;
                        }
                }