[chronojump] force sensor: while tare or calibrate, that buttons are unsensitive



commit 6f4dcd7fe46244907335456e3c8076020abca743
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jan 21 16:44:55 2019 +0100

    force sensor: while tare or calibrate, that buttons are unsensitive

 src/gui/forceSensor.cs | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index 5411059a..64e3b1b7 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -316,11 +316,13 @@ public partial class ChronoJumpWindow
 
                if(o == (object) button_force_sensor_tare)
                {
+                       alignment_force_sensor_adjust.Sensitive = false;
                        forceSensorOtherMode = forceSensorOtherModeEnum.TARE;
                        forceOtherThread = new Thread(new ThreadStart(forceSensorTare));
                }
                else if(o == (object) button_force_sensor_calibrate)
                {
+                       alignment_force_sensor_adjust.Sensitive = false;
                        forceSensorOtherMode = forceSensorOtherModeEnum.CALIBRATE;
                        forceOtherThread = new Thread(new ThreadStart(forceSensorCalibrate));
                }
@@ -379,7 +381,10 @@ public partial class ChronoJumpWindow
 
                        if(forceSensorOtherMode == forceSensorOtherModeEnum.TARE ||
                                forceSensorOtherMode == forceSensorOtherModeEnum.CALIBRATE)
+                       {
+                               alignment_force_sensor_adjust.Sensitive = true;
                                return false;
+                       }
                        else if(forceSensorOtherMode == forceSensorOtherModeEnum.CHECK_VERSION)
                                forceSensorButtonsSensitive(true);
                        else //if(forceSensorOtherMode == forceSensorOtherModeEnum.CAPTURE_PRE)


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