[chronojump] Cancelling force capture on change mode or quit. UNTESTED.



commit d929721563721890f7a82cc0a7c375cd522f2ebb
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Jun 10 19:33:48 2017 -0300

    Cancelling force capture on change mode or quit. UNTESTED.

 src/gui/chronojump.cs |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index f4c692d..336b22d 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2107,6 +2107,13 @@ public partial class ChronoJumpWindow
                encoderRProcCapture.SendEndProcess();
                encoderRProcAnalyze.SendEndProcess();
 
+               //cancel force capture process
+               if(capturingForce == forceStatus.STARTING || capturingForce == forceStatus.CAPTURING)
+               {
+                       LogB.Information("cancelling force capture");
+                       forceProcessCancel = true;
+               }
+
                LogB.Information("Bye3!");
                
                Log.End();
@@ -2835,6 +2842,13 @@ public partial class ChronoJumpWindow
                notebook_capture_graph_table.CurrentPage = 0; //"Show graph"
                notebook_capture_graph_table.ShowTabs = true;
 
+               //cancel force capture process if mode is changed
+               if(capturingForce == forceStatus.STARTING || capturingForce == forceStatus.CAPTURING)
+               {
+                       LogB.Information("cancelling force capture");
+                       forceProcessCancel = true;
+               }
+
                if(m == Constants.Menuitem_modes.JUMPSSIMPLE || m == Constants.Menuitem_modes.JUMPSREACTIVE)
                {
                        notebook_sup.CurrentPage = 0;


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