[chronojump] RunInterval edit showDistance, shows just the distance of each track (without the limited factor)



commit d7317654effc94ff3ce305dd6dfa4e4638c30631
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Aug 30 13:05:23 2022 +0200

    RunInterval edit showDistance, shows just the distance of each track (without the limited factor)

 src/gui/run.cs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/run.cs b/src/gui/run.cs
index fd7eabdc0..c0a30bc8f 100644
--- a/src/gui/run.cs
+++ b/src/gui/run.cs
@@ -513,11 +513,13 @@ public class EditRunIntervalWindow : EditRunWindow
                }
 
                if (distancesString != "")
+               {
                        entry_distance_value.Text = RunType.DistancesStringAsMeters (distancesString);
-               else {
+                       label_distance_units.Hide ();
+               } else {
                        //2 on the rest of tests show interval x times
-                       entry_distance_value.Text = myRun.DistanceInterval.ToString() +
-                               "x" + myRun.Limited;
+                       entry_distance_value.Text = myRun.DistanceInterval.ToString();
+                       label_distance_units.Show ();
                }
 
                entry_distance_value.Sensitive = false;


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