[chronojump] Ensure JumpSimple and RunSimple cairo graphs are updated after capture



commit 0a074d66e1c2ccc53a4ecf90a47ec093bc737545
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Sep 1 17:40:55 2021 +0200

    Ensure JumpSimple and RunSimple cairo graphs are updated after capture

 src/gui/app1/chronojump.cs | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 71a60c564..effd68398 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -4914,6 +4914,9 @@ public partial class ChronoJumpWindow
                        sensitiveGuiAutoExecuteOrWait (false);
                }
 
+               //Cairo graph is not updated if window is not resized, so force update
+               updateGraphJumpsSimple();
+
                //stop camera (storing value or not)
                if(currentEventExecute.Cancel || currentJump == null)
                        webcamEnd (Constants.TestTypes.JUMP, -1);
@@ -5346,10 +5349,8 @@ public partial class ChronoJumpWindow
                else if( currentEventExecute.ChronopicDisconnected )
                        chronopicDisconnectedWhileExecuting();
 
-               //run simple simulated values sometimes does not update the graph, just force it
-               if(currentSession.Name == Constants.SessionSimulatedName &&                     //this 
condition is not needed, but just in case...
-                               ! cp2016.StoredCanCaptureContacts && ! cp2016.StoredWireless) //is simulated
-                       updateGraphRunsSimple();
+               //Cairo graph is not updated if window is not resized, so force update
+               updateGraphRunsSimple();
 
                //stop camera (storing value or not)
                if(currentEventExecute.Cancel || currentRun == null)


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