[chronojump] Do not use this SqlitePreferences EncoderMassGravitatory, EncoderWeightsInertial. Just use encoderCo
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Do not use this SqlitePreferences EncoderMassGravitatory, EncoderWeightsInertial. Just use encoderCo
- Date: Thu, 24 Mar 2022 16:24:36 +0000 (UTC)
commit bbb8fbc06260cbd0dd579f3febe858523ff0f2d1
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 24 17:23:43 2022 +0100
Do not use this SqlitePreferences EncoderMassGravitatory, EncoderWeightsInertial. Just use
encoderConfiguration (active)
src/gui/app1/encoder.cs | 6 ++++++
src/sqlite/preferences.cs | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index e8999687d..320debf03 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -907,12 +907,15 @@ public partial class ChronoJumpWindow
else //if(laterality == "L")
radio_encoder_laterality_l.Active = true;
+ /*
+ Do not use this SqlitePreferences rows because this fields are on encoderConfiguration
table (Active)
//4 mass / weights
string mass = SqlitePreferences.Select(SqlitePreferences.EncoderMassGravitatory, true);
spin_encoder_extra_weight.Value = Convert.ToDouble(Util.ChangeDecimalSeparator(mass));
string weights = SqlitePreferences.Select(SqlitePreferences.EncoderWeightsInertial, true);
entry_encoder_im_weights_n.Text = weights;
+ */
Sqlite.Close();
@@ -948,6 +951,8 @@ public partial class ChronoJumpWindow
else //(current_mode == Constants.Modes.POWERINERTIAL)
SqlitePreferences.Update (SqlitePreferences.EncoderLateralityInertial, laterality,
true);
+ /*
+ Do not use this SqlitePreferences rows because this fields are on encoderConfiguration
table (Active)
//4 mass / weights
if(current_mode == Constants.Modes.POWERGRAVITATORY)
SqlitePreferences.Update (SqlitePreferences.EncoderMassGravitatory,
@@ -957,6 +962,7 @@ public partial class ChronoJumpWindow
SqlitePreferences.Update (SqlitePreferences.EncoderWeightsInertial,
spin_encoder_im_weights_n.Value.ToString(),
true);
+ */
Sqlite.Close();
diff --git a/src/sqlite/preferences.cs b/src/sqlite/preferences.cs
index db15c02e5..d9f170df9 100644
--- a/src/sqlite/preferences.cs
+++ b/src/sqlite/preferences.cs
@@ -72,8 +72,8 @@ class SqlitePreferences : Sqlite
public const string EncoderContractionInertial = "encoderContractionInertial";
public const string EncoderLateralityGravitatory = "encoderLateralityGravitatory";
public const string EncoderLateralityInertial = "encoderLateralityInertial";
- public const string EncoderMassGravitatory = "encoderMassGravitatory";
- public const string EncoderWeightsInertial = "encoderWeightsInertial";
+ public const string EncoderMassGravitatory = "encoderMassGravitatory"; //unused on 2.2.2. Just use
encoderConfiguration table
+ public const string EncoderWeightsInertial = "encoderWeightsInertial"; //unused on 2.2.2. Just use
encoderConfiguration table
public const string EncoderAutoSaveCurveBestNValue = "encoderAutoSaveCurveBestNValue";
public const string EncoderWorkKcal = "encoderWorkKcal";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]