[chronojump] Miising on last commit



commit dc1d6f8588e398032f131b6cc18a5447276abe86
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 31 17:46:06 2019 +0200

    Miising on last commit

 src/gui/chronojump.cs | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 14f80e08..38a871b5 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -6938,12 +6938,14 @@ LogB.Debug("mc finished 5");
                
        private void on_button_rj_bells_clicked(object o, EventArgs args) {
                repetitiveConditionsWin.View(Constants.BellModes.JUMPS, preferences.volumeOn, 
preferences.gstreamer,
-                               preferences.encoderCaptureMainVariable, 
preferences.encoderCaptureSecondaryVariable, encoderRhythm);
+                               preferences.encoderCaptureMainVariable,
+                               preferences.encoderCaptureSecondaryVariable, 
preferences.encoderCaptureSecondaryVariableShow, encoderRhythm);
        }
 
        private void on_button_time_bells_clicked(object o, EventArgs args) {
                repetitiveConditionsWin.View(Constants.BellModes.RUNS, preferences.volumeOn, 
preferences.gstreamer,
-                               preferences.encoderCaptureSecondaryVariable, 
preferences.encoderCaptureSecondaryVariable, encoderRhythm);
+                               preferences.encoderCaptureMainVariable,
+                               preferences.encoderCaptureSecondaryVariable, 
preferences.encoderCaptureSecondaryVariableShow, encoderRhythm);
        }
        
        private void on_repetitive_conditions_closed(object o, EventArgs args)
@@ -7000,6 +7002,15 @@ LogB.Debug("mc finished 5");
                        }
                        string secondaryVariableStr = Constants.GetEncoderVariablesCapture(secondaryVariable);
 
+                       //secondaryVariableShow
+                       bool secondaryVariableShow = repetitiveConditionsWin.GetSecondaryVariableShow;
+                       if( preferences.encoderCaptureSecondaryVariableShow != secondaryVariableShow ) {
+                               SqlitePreferences.Update("encoderCaptureSecondaryVariableShow", 
secondaryVariableShow.ToString(), false);
+                               preferences.encoderCaptureSecondaryVariableShow = secondaryVariableShow;
+                       }
+                       if(! secondaryVariableShow)
+                               secondaryVariableStr = "";
+
                        //treeview_encoder should be updated (to colorize some cells)
                        //only if there was data
                        //this avoids misbehaviour when bell is pressed and there's no data in treeview


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