[vlc-commits] macosx: Hide VLCSlider knob when nothing is playing

Marvin Scholz git at videolan.org
Sun Jul 23 14:19:31 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Jul 23 14:15:51 2017 +0200| [d7cedd0f548903c228a4d1d1349352bc24e40d34] | committer: Marvin Scholz

macosx: Hide VLCSlider knob when nothing is playing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7cedd0f548903c228a4d1d1349352bc24e40d34
---

 modules/gui/macosx/VLCControlsBarCommon.m | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/macosx/VLCControlsBarCommon.m b/modules/gui/macosx/VLCControlsBarCommon.m
index 2e103356f5..4b035aa0a1 100644
--- a/modules/gui/macosx/VLCControlsBarCommon.m
+++ b/modules/gui/macosx/VLCControlsBarCommon.m
@@ -304,6 +304,7 @@
 
     if (!p_input) {
         // Nothing playing
+        [self.timeSlider setKnobHidden:YES];
         [self.timeSlider setFloatValue: 0.0];
         [self.timeField setStringValue: @"00:00"];
         [self.timeSlider setIndefinite:NO];
@@ -311,6 +312,8 @@
         return;
     }
 
+    [self.timeSlider setKnobHidden:NO];
+
     vlc_value_t pos;
     var_Get(p_input, "position", &pos);
     [self.timeSlider setFloatValue:(10000. * pos.f_float)];



More information about the vlc-commits mailing list