[chronojump] On encoder exercise change options or encoder capture (always show graph tab)



commit 5cf121cf4a96a49102f543e596b85ccba790feff
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jun 19 19:22:22 2017 +0200

    On encoder exercise change options or encoder capture (always show graph tab)

 src/gui/encoder.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 2872762..2608502 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -788,6 +788,10 @@ public partial class ChronoJumpWindow
        {
                saveEncoderExerciseOptionsToPreferences();
 
+               //if seeing "show table" move to "show graph"
+               if(notebook_encoder_capture_main.CurrentPage == 1)
+                       notebook_encoder_capture_main.CurrentPage = 0;
+
                on_button_encoder_capture_clicked_do (true);
        }
 
@@ -3851,8 +3855,13 @@ public partial class ChronoJumpWindow
        }
        private void encoder_exercise_show_hide (bool show)
        {
-               if(show)
+               if(show) {
                        notebook_encoder_capture_or_exercise_or_instructions.Page = 1;
+
+                       //if seeing "show table" move to "show graph" (encoder exercise stuff is there)
+                       if(notebook_encoder_capture_main.CurrentPage == 1)
+                               notebook_encoder_capture_main.CurrentPage = 0;
+               }
                else
                        notebook_encoder_capture_or_exercise_or_instructions.Page = 0;
 


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