[chronojump] Capture button when device unconfigured popups device window for contact tests



commit 1c55374c9d3cbd49af54249430fe909b05833ec3
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Aug 2 13:28:57 2018 +0200

    Capture button when device unconfigured popups device window for contact tests

 src/gui/chronojump.cs | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 55f5dae8..06800a8e 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -4074,9 +4074,13 @@ public partial class ChronoJumpWindow
                        cp2016.SerialPortsCloseIfNeeded(true);
 
                        //simulated tests are only allowed on SIMULATED session
-                       if(currentSession.Name != Constants.SessionSimulatedName) {
-                               new DialogMessage(Constants.MessageTypes.WARNING, 
Constants.SimulatedTestsNotAllowed);
-                               UtilGtk.DeviceColors(viewport_chronopics, false);
+                       if(currentSession.Name != Constants.SessionSimulatedName)
+                       {
+                               //new DialogMessage(Constants.MessageTypes.WARNING, 
Constants.SimulatedTestsNotAllowed);
+                               //UtilGtk.DeviceColors(viewport_chronopics, false);
+                               //open device window
+                               chronopicRegisterUpdate(true);
+
                                return;
                        }
                        on_button_execute_test_accepted();


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