[chronojump] Encoder recalibrate button on top



commit 41f63f93bd3fba9dbd0344f1481c1a84d1dc4b3d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed May 15 19:59:33 2019 +0200

    Encoder recalibrate button on top

 glade/app1.glade      | 3 +--
 src/gui/chronojump.cs | 6 ++++--
 src/gui/encoder.cs    | 1 -
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 62282882..4032ab35 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -24605,7 +24605,6 @@ then click this button.</property>
                                                             </child>
                                                             <child>
                                                             <widget class="GtkHBox" id="hbox209">
-                                                            <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">4</property>
                                                             <child>
@@ -24613,7 +24612,7 @@ then click this button.</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="xalign">1</property>
-                                                            <property name="label" translatable="yes"> If 
you want to recalibrate, push this button</property>
+                                                            <property name="label"> If you want to 
recalibrate, push this button</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">True</property>
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 4655c8d8..57080e43 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -7264,7 +7264,9 @@ LogB.Debug("mc finished 5");
                
                button_contacts_person_change.Sensitive = false;
                button_encoder_person_change.Sensitive = false;
-               button_encoder_inertial_recalibrate.Sensitive = false;
+
+               image_inertial_extended.Visible = true;
+               button_encoder_inertial_recalibrate.Visible = false;
 
                encoderButtonsSensitive(encoderSensEnum.PROCESSINGR);
                
@@ -7323,8 +7325,8 @@ LogB.Debug("mc finished 5");
                //allow show the recalibrate button
                if(encoderInertialCalibratedFirstTime)
                {
+                       image_inertial_extended.Visible = false;
                        button_encoder_inertial_recalibrate.Visible = true;
-                       button_encoder_inertial_recalibrate.Sensitive = true;
                }
 
                if(encoderCaptureCurves != null && encoderCaptureCurves.Count > 0)
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index a972108a..900fbb23 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -750,7 +750,6 @@ public partial class ChronoJumpWindow
                button_encoder_inertial_calibrate_close.Sensitive = true;
                label_wait.Text = " ";
                label_calibrate_output_message.Text = "";
-               button_encoder_inertial_recalibrate.Visible = true;
                notebook_encoder_capture_or_exercise_or_instructions.Page = 2;
        }
 


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