[chronojump] on contacts, if no exercise, Shown: "Need to create an exercise."



commit b2a8f037d058972c934d526f7b34b25348d1b853
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jul 3 13:23:09 2020 +0200

    on contacts, if no exercise, Shown: "Need to create an exercise."

 src/gui/app1/contactsExercise.cs | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/gui/app1/contactsExercise.cs b/src/gui/app1/contactsExercise.cs
index 2a078a0c..74a13af9 100644
--- a/src/gui/app1/contactsExercise.cs
+++ b/src/gui/app1/contactsExercise.cs
@@ -112,6 +112,9 @@ public partial class ChronoJumpWindow
                else if(m == Constants.Menuitem_modes.RUNSENCODER)
                        name = UtilGtk.ComboGetActive(combo_run_encoder_exercise);
 
+               if(name == "")
+                       name = Catalog.GetString("Need to create an exercise.");
+
                label_contacts_exercise_selected_name.Text = name;
        }
        private void setLabelContactsExerciseSelected(string name)


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