[chronojump] Force update spin_encoder_im_weights_n even if it's not viewed (it is used on inertia moment calcula



commit e2b120cae80e237dd6fb326f3a6e3c20ba9e9f28
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Mar 24 17:26:06 2022 +0100

    Force update spin_encoder_im_weights_n even if it's not viewed (it is used on inertia moment calculation 
at start, and it failed on one machine)

 src/gui/app1/encoder.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index 320debf03..00c8422b2 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -2015,8 +2015,10 @@ public partial class ChronoJumpWindow
                                                );
                        }
 
-                       //this will update also spin_encoder_im_weights_n
+                       //this will update also spin_encoder_im_weights_n ...
                        entry_encoder_im_weights_n.Text = encoderConfigurationCurrent.extraWeightN.ToString();
+                       // ... but we found not updated on some computers, so we force update it
+                       spin_encoder_im_weights_n.Value = encoderConfigurationCurrent.extraWeightN;
 
                        label_encoder_im_total.Text = encoderConfigurationCurrent.inertiaTotal.ToString();
                        label_encoder_top_im.Text = Catalog.GetString("Inertia M.") + ": " + 
label_encoder_im_total.Text;


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