[chronojump] Compujump cannot use persons lateral window



commit eb1874157e80cb02317df4c10757fd570145cb9a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 26 11:29:43 2017 +0200

    Compujump cannot use persons lateral window

 src/gui/chronojump.cs  |    2 +-
 src/gui/preferences.cs |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 4395ad0..0734ae8 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2774,7 +2774,7 @@ public partial class ChronoJumpWindow
 
        private void on_preferences_activate (object o, EventArgs args) 
        {
-               preferencesWin = PreferencesWindow.Show(preferences, rfdList, impulse, current_menuitem_mode);
+               preferencesWin = PreferencesWindow.Show(preferences, rfdList, impulse, current_menuitem_mode, 
configChronojump.Compujump);
                
                preferencesWin.FakeButtonImported.Clicked += new 
EventHandler(on_preferences_import_configuration);
                preferencesWin.FakeButtonDebugModeStart.Clicked += new 
EventHandler(on_preferences_debug_mode_start);
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 906c09c..d4c47be 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -254,12 +254,15 @@ public class PreferencesWindow
        }
        
        static public PreferencesWindow Show (Preferences preferences, List <ForceSensorRFD> rfdList, 
ForceSensorImpulse impulse,
-                       Constants.Menuitem_modes menu_mode)
+                       Constants.Menuitem_modes menu_mode, bool compujump)
        {
                if (PreferencesWindowBox == null) {
                        PreferencesWindowBox = new PreferencesWindow ();
                }
 
+               if(compujump)
+                       PreferencesWindowBox.check_appearance_person_win_hide.Sensitive = false;
+
                if(menu_mode != Constants.Menuitem_modes.JUMPSSIMPLE && menu_mode != 
Constants.Menuitem_modes.JUMPSREACTIVE)
                        PreferencesWindowBox.notebook.GetNthPage(JUMPSPAGE).Hide();
                if(menu_mode != Constants.Menuitem_modes.RUNSSIMPLE && menu_mode != 
Constants.Menuitem_modes.RUNSINTERVALLIC)


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