macosx: Hide VLCSlider knob when nothing is playing
authorMarvin Scholz <epirat07@gmail.com>
Sun, 23 Jul 2017 12:15:51 +0000 (14:15 +0200)
committerMarvin Scholz <epirat07@gmail.com>
Sun, 23 Jul 2017 12:17:30 +0000 (14:17 +0200)
modules/gui/macosx/VLCControlsBarCommon.m

index 2e10335..4b035aa 100644 (file)
 
     if (!p_input) {
         // Nothing playing
+        [self.timeSlider setKnobHidden:YES];
         [self.timeSlider setFloatValue: 0.0];
         [self.timeField setStringValue: @"00:00"];
         [self.timeSlider setIndefinite:NO];
         return;
     }
 
+    [self.timeSlider setKnobHidden:NO];
+
     vlc_value_t pos;
     var_Get(p_input, "position", &pos);
     [self.timeSlider setFloatValue:(10000. * pos.f_float)];