[chronojump] RaceAnalyzer analyze options close_and_analyze visible only on current_set tab



commit 51eaf61c65b25dece64d74dd05fc525c587be2dd
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Feb 18 16:58:46 2022 +0100

    RaceAnalyzer analyze options close_and_analyze visible only on current_set tab

 src/gui/app1/runEncoderAnalyze.cs | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/gui/app1/runEncoderAnalyze.cs b/src/gui/app1/runEncoderAnalyze.cs
index 6525331a0..d12c0e6e5 100644
--- a/src/gui/app1/runEncoderAnalyze.cs
+++ b/src/gui/app1/runEncoderAnalyze.cs
@@ -132,6 +132,10 @@ public partial class ChronoJumpWindow
        private int notebook_run_encoder_analyze_coming_page; //needed this temp variable
        private void on_button_run_encoder_analyze_options_clicked (object o, EventArgs args)
        {
+               //only show close_and_analyze button on current set tab
+               button_run_encoder_analyze_options_close_and_analyze.Visible =
+                       (notebook_run_encoder_analyze.CurrentPage == 
Convert.ToInt32(notebook_run_encoder_analyze_pages.CURRENTSET));
+
                notebook_run_encoder_analyze_coming_page = 
Convert.ToInt32(notebook_run_encoder_analyze.CurrentPage);
                notebook_run_encoder_analyze.CurrentPage = 
Convert.ToInt32(notebook_run_encoder_analyze_pages.OPTIONS);
 


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