]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Re-enable Apply button when dragging a slider too
authorterencehill <piuntn@gmail.com>
Mon, 4 Jan 2016 13:02:01 +0000 (14:02 +0100)
committerGitLab <gitlab@gitlab.com>
Thu, 28 Jan 2016 20:16:18 +0000 (20:16 +0000)
qcsrc/menu/item/slider.qc

index 5cbd53b46cb750eef6f8f85f8afade9ab7aae7a4..4525af16a859c44cc2bd12080c1d91862bb32491 100644 (file)
                                v = median(0, (pos.x - me.pressOffset - 0.5 * me.controlWidth) / (1 - me.textSpace - me.controlWidth), 1) * (me.valueMax - me.valueMin) + me.valueMin;
                                if (me.valueStep) v = floor(0.5 + v / me.valueStep) * me.valueStep;
                                me.setValue_noAnim(me, v);
+                               if(me.applyButton)
+                                       me.applyButton.disabled = false;
                        }
                        else
                        {