From f33576cc81d16c9f11856cd73aa757ae1f437419 Mon Sep 17 00:00:00 2001 From: Aleksei S Date: Tue, 18 Sep 2018 13:56:20 +0200 Subject: [PATCH] Stop simulation after pressing Up or Down in simulation layer textfield CURA-5725 --- plugins/SimulationView/LayerSlider.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/SimulationView/LayerSlider.qml b/plugins/SimulationView/LayerSlider.qml index 1540f053f5..5bce35c077 100644 --- a/plugins/SimulationView/LayerSlider.qml +++ b/plugins/SimulationView/LayerSlider.qml @@ -195,6 +195,8 @@ Item { // set the slider position based on the upper value function setValue(value) { + sliderRoot.manuallyChanged = true + // Normalize values between range, since using arrow keys will create out-of-the-range values value = sliderRoot.normalizeValue(value) @@ -292,6 +294,8 @@ Item { // set the slider position based on the lower value function setValue(value) { + sliderRoot.manuallyChanged = true + // Normalize values between range, since using arrow keys will create out-of-the-range values value = sliderRoot.normalizeValue(value) @@ -342,4 +346,4 @@ Item { setValue: lowerHandle.setValue // connect callback functions } } -} +} \ No newline at end of file