[chronojump] label_gravitatory_vpf_propulsive shown only if propulsive is active



commit b5c921565048aea2fb48d53932511ec18c3ea9b3
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Apr 2 16:27:40 2019 +0200

    label_gravitatory_vpf_propulsive shown only if propulsive is active

 src/gui/chronojump.cs | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index c56bec54..24d8bcd6 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2133,7 +2133,8 @@ public partial class ChronoJumpWindow
        //no need of reationTimes because is done in:
        //gui/reactionTime on_extra_window_reaction_times_test_changed()
        
-       private void on_combo_pulses_changed(object o, EventArgs args) {
+       private void on_combo_pulses_changed(object o, EventArgs args)
+       {
                //combo_pulses.Changed -= new EventHandler (on_combo_pulses_changed);
 
                ComboBox combo = o as ComboBox;
@@ -3090,9 +3091,13 @@ public partial class ChronoJumpWindow
                        //currently no combo_multi_chronopic
                        treeview_multi_chronopic_storeReset(false);
                        fillTreeView_multi_chronopic();
+
+                       if(current_menuitem_mode == Constants.Menuitem_modes.POWERGRAVITATORY){
+                               label_gravitatory_vpf_propulsive.Visible = preferences.encoderPropulsive;
+                       }
                }
-               catch 
-               {
+               catch {
+                       LogB.Information("catched at on_preferences_accepted ()");
                }
        }
 
@@ -3310,7 +3315,7 @@ public partial class ChronoJumpWindow
                                }
                                //hbox_encoder_capture_1_or_cont.Visible = true;
                                vbox_angle_now.Visible = false;
-                               label_gravitatory_vpf_propulsive.Visible = true;
+                               label_gravitatory_vpf_propulsive.Visible = preferences.encoderPropulsive;
 
                                notebook_encoder_top.Page = 0;
                        } else {


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