diff --git a/RESTService/addon.cc b/RESTService/addon.cc index fc32ff641..2d860bf11 100644 --- a/RESTService/addon.cc +++ b/RESTService/addon.cc @@ -136,7 +136,7 @@ namespace minsky if (syncPos!=string::npos && syncPos==command.size()-12) return String::New(env, utf_to_utf(doCommand(command, arguments))); #endif - if (minskyCommands.size()>10) + if (minskyCommands.size()>20) { if (!inputBufferExceeded) setBusyCursor(); inputBufferExceeded=true; diff --git a/gui-js/libs/menu/src/lib/insert/create-variable/create-variable.component.ts b/gui-js/libs/menu/src/lib/insert/create-variable/create-variable.component.ts index e7a52e248..987f192ef 100644 --- a/gui-js/libs/menu/src/lib/insert/create-variable/create-variable.component.ts +++ b/gui-js/libs/menu/src/lib/insert/create-variable/create-variable.component.ts @@ -103,9 +103,9 @@ export class CreateVariableComponent implements OnInit, OnDestroy { shortDescription: new FormControl(''), detailedDescription: new FormControl(''), enableSlider: new FormControl(true), - sliderBoundsMax: new FormControl(null), - sliderBoundsMin: new FormControl(null), - sliderStepSize: new FormControl(null), + sliderBoundsMax: new FormControl(1), + sliderBoundsMin: new FormControl(-1), + sliderStepSize: new FormControl(0.1), sliderStepRel: new FormControl(false), }); @@ -181,6 +181,7 @@ export class CreateVariableComponent implements OnInit, OnDestroy { item.enableSlider(this.enableSlider.value); if (typeof this.sliderBoundsMax.value=='number') item.sliderMax(this.sliderBoundsMax.value); if (typeof this.sliderBoundsMin.value=='number') item.sliderMin(this.sliderBoundsMin.value); + this.electronService.log(typeof this.sliderStepSize.value); if (typeof this.sliderStepSize.value=='number') item.sliderStep(this.sliderStepSize.value); item.sliderStepRel(this.sliderStepRel.value); this.closeWindow();