[chronojump] RaceAnalyzer: Do not show the exercise image



commit 13467ab460562ed25d99cab766e5b5931df932ed
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Feb 1 17:13:28 2022 +0100

    RaceAnalyzer: Do not show the exercise image

 glade/app1.glade                 | 2 +-
 src/gui/app1/contactsExercise.cs | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index bec8fcf14..4df216e61 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -10554,7 +10554,7 @@ EncoderInertialCapture</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">20</property>
                                                             <child>
-                                                            <widget class="GtkFrame" id="frame7">
+                                                            <widget class="GtkFrame" id="frame_image_test">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="label_xalign">0</property>
diff --git a/src/gui/app1/contactsExercise.cs b/src/gui/app1/contactsExercise.cs
index 3e17805d1..f88187e6e 100644
--- a/src/gui/app1/contactsExercise.cs
+++ b/src/gui/app1/contactsExercise.cs
@@ -31,6 +31,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Button button_combo_select_contacts_top_left;
        [Widget] Gtk.Button button_combo_select_contacts_top_right;
        [Widget] Gtk.Button button_contacts_exercise;
+       [Widget] Gtk.Frame frame_image_test;
        [Widget] Gtk.Label label_contacts_exercise_selected_name;
        [Widget] Gtk.Label label_contacts_exercise_selected_options;
        [Widget] Gtk.Button button_contacts_exercise_actions_edit_do;
@@ -48,6 +49,9 @@ public partial class ChronoJumpWindow
                hbox_contacts_sup_capture_analyze_two_buttons.Sensitive = false;
                hbox_top_person.Sensitive = false;
 
+               //do not show the image on runEncoder
+               frame_image_test.Visible = (current_mode != Constants.Modes.RUNSENCODER);
+
                frame_run_encoder_exercise.Visible = false; //TODO: implement more modes in the future
 
                button_contacts_exercise_close_and_capture.Sensitive = myTreeViewPersons.IsThereAnyRecord();


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