[chronojump] ForceSensor export data label shows ok person change



commit 5cc4ce4aa8189d1f351786690c02e48d6b0305e0
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Feb 9 16:59:38 2021 +0100

    ForceSensor export data label shows ok person change

 glade/app1.glade                   | 2 +-
 src/gui/app1/forceSensor.cs        | 8 ++++++++
 src/gui/app1/forceSensorAnalyze.cs | 8 ++++----
 3 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 44cb08da..bf6213af 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -24225,7 +24225,7 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkLabel" id="label_export_data">
+                                                            <widget class="GtkLabel" 
id="label_force_sensor_export_data">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             </widget>
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index b9352736..5c828161 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -582,6 +582,14 @@ public partial class ChronoJumpWindow
                label_force_sensor_value.Text = "";
                label_force_sensor_value_min.Text = "";
 
+               if (radio_force_sensor_analyze_individual_current_session.Active)
+               {
+                       if(currentPerson != null)
+                               label_force_sensor_export_data.Text = currentPerson.Name;
+                       else
+                               label_force_sensor_export_data.Text = "";
+               }
+
                button_force_sensor_image_save_signal.Sensitive = false;
        }
 
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index db5b64e7..fa6a7f19 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -155,7 +155,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Label label_force_sensor_ai_variability_units;
 
        [Widget] Gtk.Notebook notebook_force_sensor_export;
-       [Widget] Gtk.Label label_export_data;
+       [Widget] Gtk.Label label_force_sensor_export_data;
        [Widget] Gtk.ProgressBar progressbar_force_sensor_export;
 
        private RepetitionMouseLimits fsAIRepetitionMouseLimits;
@@ -710,15 +710,15 @@ public partial class ChronoJumpWindow
        private void on_radio_force_sensor_analyze_individual_current_session_toggled (object o, EventArgs 
args)
        {
                if(currentPerson != null)
-                       label_export_data.Text = currentPerson.Name;
+                       label_force_sensor_export_data.Text = currentPerson.Name;
                else
-                       label_export_data.Text = "";
+                       label_force_sensor_export_data.Text = "";
 
                notebook_force_sensor_analyze_top.CurrentPage = 1;
        }
        private void on_radio_force_sensor_analyze_groupal_current_session_toggled (object o, EventArgs args)
        {
-               label_export_data.Text = currentSession.Name;
+               label_force_sensor_export_data.Text = currentSession.Name;
 
                notebook_force_sensor_analyze_top.CurrentPage = 1;
        }


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