[chronojump/FS-TFT-Menu] Do not try to draw encoder signal cairo if user don't want it



commit 49a18ae531902ee5c01557b5c664039826543354
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Mar 29 11:20:58 2022 +0200

    Do not try to draw encoder signal cairo if user don't want it

 src/gui/app1/encoder.cs | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index d8c5cc76b..63df4247d 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -6063,6 +6063,9 @@ public partial class ChronoJumpWindow
        }
        private void updateEncoderCaptureSignalCairo (bool inertial, bool forceRedraw)
        {
+               if(preferences.encoderCaptureShowOnlyBars == null || ! 
preferences.encoderCaptureShowOnlyBars.ShowSignal)
+                       return;
+
                if(cairoGraphEncoderSignal == null)
                        cairoGraphEncoderSignal = new CairoGraphEncoderSignal (
                                encoder_capture_signal_drawingarea_cairo, "title");


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