Merge pull request #257 from nathan/slider-min-max-autosave

Fixed setting slider min/max not triggering autosave
This commit is contained in:
Shane M. Clements 2014-06-18 12:40:18 +02:00
commit 0e8f29f0b9

View file

@ -392,6 +392,7 @@ public class Watcher extends Sprite implements DragClient {
sliderMax = Math.max(minVal, maxVal); sliderMax = Math.max(minVal, maxVal);
isDiscrete = (min.indexOf('.') < 0) && (max.indexOf('.') < 0); isDiscrete = (min.indexOf('.') < 0) && (max.indexOf('.') < 0);
setSliderValue(sliderMin); setSliderValue(sliderMin);
Scratch.app.setSaveNeeded();
} }
var d:DialogBox = new DialogBox(setMinMax); var d:DialogBox = new DialogBox(setMinMax);
d.addTitle('Slider Range'); d.addTitle('Slider Range');