[chronojump] Don't allow to change to 'show data' while encoder exercise config
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Don't allow to change to 'show data' while encoder exercise config
- Date: Thu, 9 Nov 2017 19:59:37 +0000 (UTC)
commit 2428745c4079ace62176ae21a5ad6018bfc3808f
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Nov 9 12:44:56 2017 +0100
Don't allow to change to 'show data' while encoder exercise config
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 85c6a10..0085146 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -3991,10 +3991,19 @@ public partial class ChronoJumpWindow
//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;
+
+ //don't show the page 'show table', while exercise or instructions is shown
+ if(notebook_encoder_capture_main.NPages > 0)
+ notebook_encoder_capture_main.GetNthPage(1).Hide();
}
- else
+ else {
notebook_encoder_capture_or_exercise_or_instructions.Page = 0;
+ //show againthe page 'show table', while exercise or instructions is shown
+ if(notebook_encoder_capture_main.NPages > 0)
+ notebook_encoder_capture_main.GetNthPage(1).Show();
+ }
+
main_menu.Sensitive = ! show;
hbox_encoder_sup_capture_analyze.Sensitive = ! show;
notebook_session_person.Sensitive = ! show;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]