[chronojump/michrolab] Do not show threshold button on WICHRO



commit 89ee70468fb6437656dc45d236413727ea87291d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 13 10:50:40 2022 +0200

    Do not show threshold button on WICHRO

 src/gui/app1/chronojump.cs | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index a572d8a82..a6ae8167e 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -4675,6 +4675,11 @@ public partial class ChronoJumpWindow
                {
                        chronopicRegister.SetSelectedForMode (discoverWin.PortSelected, current_mode);
                        button_detect_show_hide (false);
+
+                       //do not show the threshold on WICHRO
+                       //if ( chronopicRegister.NumConnectedOfType 
(ChronopicRegisterPort.Types.RUN_WIRELESS) == 1)
+                       if (current_mode == Constants.Modes.RUNSSIMPLE || current_mode == 
Constants.Modes.RUNSINTERVALLIC)
+                               button_threshold.Visible = (discoverWin.PortSelected.Type != 
ChronopicRegisterPort.Types.RUN_WIRELESS);
                }
 
                notebook_sup.CurrentPage = app1s_notebook_sup_entered_from; //CONTACTS or ENCODER


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