[chronojump] force sensor IMP_UNTIL_PERCENT_F_MAX selected value is num2. num1 is 0.
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] force sensor IMP_UNTIL_PERCENT_F_MAX selected value is num2. num1 is 0.
- Date: Wed, 17 May 2017 11:48:49 +0000 (UTC)
commit 9d9fcf78f1f213d66b584ca07f28d24d305d10b6
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed May 17 13:47:02 2017 +0200
force sensor IMP_UNTIL_PERCENT_F_MAX selected value is num2. num1 is 0.
src/gui/preferences.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index b190cf5..da97774 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -784,7 +784,8 @@ public class PreferencesWindow
if(impulse.type == ForceSensorImpulse.Types.IMP_UNTIL_PERCENT_F_MAX)
{
hbox_force_impulse_until_percent.Visible = true;
- spinbutton_force_impulse_until_percent.Value = impulse.num1;
+ //num1 is 0
+ spinbutton_force_impulse_until_percent.Value = impulse.num2;
}
else if(impulse.type == ForceSensorImpulse.Types.IMP_RANGE)
{
@@ -810,7 +811,8 @@ public class PreferencesWindow
if(typeStr == Catalog.GetString(ForceSensorImpulse.Type_IMP_UNTIL_PERCENT_F_MAX_name))
{
- num1 = Convert.ToInt32(spinbutton_force_impulse_until_percent.Value);
+ num1 = 0;
+ num2 = Convert.ToInt32(spinbutton_force_impulse_until_percent.Value);
type = ForceSensorImpulse.Types.IMP_UNTIL_PERCENT_F_MAX;
}
else // if(typeStr == Catalog.GetString(ForceSensorImpulse.Type_IMP_RANGE_name))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]