[chronojump] Not allow to execute button_execute_test two times while webcam starting



commit 754ff9c9660a5b0088686c866aab3be40f45e976
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Jun 15 16:54:42 2019 +0200

    Not allow to execute button_execute_test two times while webcam starting

 src/gui/webcam.cs | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/gui/webcam.cs b/src/gui/webcam.cs
index 4171ee9c..a8bb1fc3 100644
--- a/src/gui/webcam.cs
+++ b/src/gui/webcam.cs
@@ -138,6 +138,9 @@ public partial class ChronoJumpWindow
 
                if(waitUntilRecording)
                {
+                       //to not allow to click two times on execute test while camera is starting: 
unsensitive button now
+                       button_execute_test.Sensitive = false;
+
                        webcamStartThreadBeforeTestStatus = statusEnum.NOT_STARTED;
                        webcamStartThread = new Thread (new ThreadStart (webcamStartThreadBeforeTest));
                        GLib.Idle.Add (new GLib.IdleHandler (pulseWebcamGTK));


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