[chronojump] ForceSensor elastic "Configure fixation" when stiffness is 0
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] ForceSensor elastic "Configure fixation" when stiffness is 0
- Date: Wed, 23 Oct 2019 17:27:42 +0000 (UTC)
commit 800c19dfe56f4e6231442e1587a3e0b27c1a9059
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Oct 23 19:27:15 2019 +0200
ForceSensor elastic "Configure fixation" when stiffness is 0
src/gui/forceSensor.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index 9dc73b3a..e4ebea0f 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -2413,8 +2413,11 @@ LogB.Information(" fs R ");
private void on_elastic_bands_win_stiffness_changed(object o, EventArgs args)
{
- button_force_sensor_stiffness.Label = Catalog.GetString("Stiffness:") + " " +
- forceSensorElasticBandsWin.TotalStiffness + " N/m";
+ if(forceSensorElasticBandsWin.TotalStiffness == "0")
+ button_force_sensor_stiffness.Label = Catalog.GetString("Configure fixation");
+ else
+ button_force_sensor_stiffness.Label = Catalog.GetString("Stiffness:") + " " +
+ forceSensorElasticBandsWin.TotalStiffness + " N/m";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]