[chronojump/FS-TFT-Menu] Fixed not using of ComputeAsElastic on forceSensorExercise gui. Could make a change on eccMin, conMi



commit 9159767306a6dc731cd1cf784fbb4836d9aa9aa6
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Mar 29 17:44:53 2022 +0200

    Fixed not using of ComputeAsElastic on forceSensorExercise gui. Could make a change on eccMin, conMin not 
updated on DB.

 src/gui/forceSensorExercise.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/forceSensorExercise.cs b/src/gui/forceSensorExercise.cs
index fe0c4eeb2..5dc9eac38 100644
--- a/src/gui/forceSensorExercise.cs
+++ b/src/gui/forceSensorExercise.cs
@@ -186,7 +186,7 @@ public class ForceSensorExerciseWindow
 
                //on edit, if elastic, pass elastic params from exercise, and not elastic from preferences. 
Opposite on not elastic
                bool repsFromPrefs = false;
-               if(exercise.Elastic)
+               if(exercise.ComputeAsElastic)
                {
                        //to avoid put -1 (in fact is 1, minimum value) on spinbuttons
                        double em = exercise.EccMin;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]