[chronojump] Fixed feedback on c not should depend on ecc-con radios: radio_encoder_eccon_*



commit 15cec3fc92878b78a99494ff5a5f6c5a1eb56f1a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu May 14 15:48:14 2020 +0200

    Fixed feedback on c not should depend on ecc-con radios: radio_encoder_eccon_*

 src/gui/repetitiveConditions.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/repetitiveConditions.cs b/src/gui/repetitiveConditions.cs
index e74e5d85..e3b9bc0e 100644
--- a/src/gui/repetitiveConditions.cs
+++ b/src/gui/repetitiveConditions.cs
@@ -783,9 +783,11 @@ public class RepetitiveConditionsWindow
        //called from previous function, gui/encoder.cs plotCurvesGraphDoPlot
        public string AssignColorAutomatic(BestSetValueEnum b, double currentValue, 
Preferences.EncoderPhasesEnum phaseEnum)
        {
-               if(radio_encoder_eccon_ecc.Active && phaseEnum != Preferences.EncoderPhasesEnum.ECC)
+               //note on "c" phaseEnum will be BOTH
+
+               if(radio_encoder_eccon_ecc.Active && phaseEnum == Preferences.EncoderPhasesEnum.CON)
                        return UtilGtk.ColorNothing;
-               else if(radio_encoder_eccon_con.Active && phaseEnum != Preferences.EncoderPhasesEnum.CON)
+               else if(radio_encoder_eccon_con.Active && phaseEnum == Preferences.EncoderPhasesEnum.ECC)
                        return UtilGtk.ColorNothing;
 
                if(EncoderAutomaticHigherActive && currentValue > getBestSetValue(b) * 
EncoderAutomaticHigherValue / 100)


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