[chronojump] runI type combo changes event_graph_label_graph_test and delete graph
- From: Xavier de Blas <xaviblas src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [chronojump] runI type combo changes event_graph_label_graph_test and delete graph
 
- Date: Mon,  8 Jun 2020 10:21:06 +0000 (UTC)
 
commit 53785fdb8ffeaf81f68d9ecfd40d968a34f5e8e8
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jun 8 12:20:34 2020 +0200
    runI type combo changes event_graph_label_graph_test and delete graph
 src/gui/app1/run.cs | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/src/gui/app1/run.cs b/src/gui/app1/run.cs
index 11df4a35..849ba6c9 100644
--- a/src/gui/app1/run.cs
+++ b/src/gui/app1/run.cs
@@ -162,12 +162,26 @@ public partial class ChronoJumpWindow
        }
        private void updateGraphRunsInterval ()
        {
+               if(currentPerson == null || currentSession == null)
+                       return;
+
                if(event_execute_drawingarea == null || event_execute_pixmap == null)
                        return;
 
                UtilGtk.ErasePaint(event_execute_drawingarea, event_execute_pixmap);
                event_execute_table_run_interval_values.Hide();
 
+               //we do not plot graph, but we want to update label event_graph_label_graph_test
+               //intializeVariables if not done before
+               event_execute_initializeVariables(
+                       ! cp2016.StoredCanCaptureContacts, //is simulated
+                       currentPerson.UniqueID,
+                       currentPerson.Name,
+                       Catalog.GetString("Phases"),      //name of the different moments
+                       Constants.RunIntervalTable, //tableName
+                       currentRunIntervalType.Name
+                       );
+
                //TODO paint graph of num of intervallic runs
        }
        
@@ -214,6 +228,7 @@ public partial class ChronoJumpWindow
 
                button_run_type_delete_interval.Sensitive = ! myRunType.IsPredefined;
 
+               updateGraphRunsInterval();
                setLabelContactsExerciseSelectedOptionsRunsInterval();
        }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]