From 564e05705d8fc7caafc487c8397765f604931155 Mon Sep 17 00:00:00 2001 From: Russell Standish Date: Wed, 17 Jan 2024 12:33:46 +1100 Subject: [PATCH] Increase command queue size to 20. --- RESTService/addon.cc | 2 +- .../insert/create-variable/create-variable.component.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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();