[chronojump] RunInterval edit showDistance, shows just the distance of each track (without the limited factor)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RunInterval edit showDistance, shows just the distance of each track (without the limited factor)
- Date: Tue, 30 Aug 2022 11:07:40 +0000 (UTC)
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]